home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-11-15 | 59.3 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Thu Nov 15 09:52:57 1990, modified Thu Nov 15 09:52:57 1990, creator 'MPS ', type ASCII, 60008 bytes "toplev.c" , at 0xeae8 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 74 6f 70 6c 65 76 | 2e 63 00 00 00 00 00 00 |..toplev|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 ea 68 00 | 00 01 ac a3 68 5c 49 a3 |......h.|....h\I.|
|00000060| 68 5c 49 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h\I.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c7 a9 00 00 |........|........|
|00000080| 2f 2a 20 54 6f 70 20 6c | 65 76 65 6c 20 6f 66 20 |/* Top l|evel of |
|00000090| 47 4e 55 20 43 20 63 6f | 6d 70 69 6c 65 72 0d 20 |GNU C co|mpiler. |
|000000a0| 20 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 | Copyri|ght (C) |
|000000b0| 31 39 38 37 2c 20 31 39 | 38 38 2c 20 31 39 38 39 |1987, 19|88, 1989|
|000000c0| 20 46 72 65 65 20 53 6f | 66 74 77 61 72 65 20 46 | Free So|ftware F|
|000000d0| 6f 75 6e 64 61 74 69 6f | 6e 2c 20 49 6e 63 2e 0d |oundatio|n, Inc..|
|000000e0| 20 20 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 | Copyr|ight (C)|
|000000f0| 20 31 39 38 39 2c 20 31 | 39 39 30 20 41 70 70 6c | 1989, 1|990 Appl|
|00000100| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|00000110| 0d 0d 54 68 69 73 20 66 | 69 6c 65 20 69 73 20 70 |..This f|ile is p|
|00000120| 61 72 74 20 6f 66 20 47 | 4e 55 20 43 43 2e 0d 0d |art of G|NU CC...|
|00000130| 47 4e 55 20 43 43 20 69 | 73 20 66 72 65 65 20 73 |GNU CC i|s free s|
|00000140| 6f 66 74 77 61 72 65 3b | 20 79 6f 75 20 63 61 6e |oftware;| you can|
|00000150| 20 72 65 64 69 73 74 72 | 69 62 75 74 65 20 69 74 | redistr|ibute it|
|00000160| 20 61 6e 64 2f 6f 72 20 | 6d 6f 64 69 66 79 0d 69 | and/or |modify.i|
|00000170| 74 20 75 6e 64 65 72 20 | 74 68 65 20 74 65 72 6d |t under |the term|
|00000180| 73 20 6f 66 20 74 68 65 | 20 47 4e 55 20 47 65 6e |s of the| GNU Gen|
|00000190| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|000001a0| 6e 73 65 20 61 73 20 70 | 75 62 6c 69 73 68 65 64 |nse as p|ublished|
|000001b0| 20 62 79 0d 74 68 65 20 | 46 72 65 65 20 53 6f 66 | by.the |Free Sof|
|000001c0| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|000001d0| 3b 20 65 69 74 68 65 72 | 20 76 65 72 73 69 6f 6e |; either| version|
|000001e0| 20 31 2c 20 6f 72 20 28 | 61 74 20 79 6f 75 72 20 | 1, or (|at your |
|000001f0| 6f 70 74 69 6f 6e 29 0d | 61 6e 79 20 6c 61 74 65 |option).|any late|
|00000200| 72 20 76 65 72 73 69 6f | 6e 2e 0d 0d 47 4e 55 20 |r versio|n...GNU |
|00000210| 43 43 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 |CC is di|stribute|
|00000220| 64 20 69 6e 20 74 68 65 | 20 68 6f 70 65 20 74 68 |d in the| hope th|
|00000230| 61 74 20 69 74 20 77 69 | 6c 6c 20 62 65 20 75 73 |at it wi|ll be us|
|00000240| 65 66 75 6c 2c 0d 62 75 | 74 20 57 49 54 48 4f 55 |eful,.bu|t WITHOU|
|00000250| 54 20 41 4e 59 20 57 41 | 52 52 41 4e 54 59 3b 20 |T ANY WA|RRANTY; |
|00000260| 77 69 74 68 6f 75 74 20 | 65 76 65 6e 20 74 68 65 |without |even the|
|00000270| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00000280| 79 20 6f 66 0d 4d 45 52 | 43 48 41 4e 54 41 42 49 |y of.MER|CHANTABI|
|00000290| 4c 49 54 59 20 6f 72 20 | 46 49 54 4e 45 53 53 20 |LITY or |FITNESS |
|000002a0| 46 4f 52 20 41 20 50 41 | 52 54 49 43 55 4c 41 52 |FOR A PA|RTICULAR|
|000002b0| 20 50 55 52 50 4f 53 45 | 2e 20 20 53 65 65 20 74 | PURPOSE|. See t|
|000002c0| 68 65 0d 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he.GNU G|eneral P|
|000002d0| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 66 6f |ublic Li|cense fo|
|000002e0| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 73 2e 0d |r more d|etails..|
|000002f0| 0d 59 6f 75 20 73 68 6f | 75 6c 64 20 68 61 76 65 |.You sho|uld have|
|00000300| 20 72 65 63 65 69 76 65 | 64 20 61 20 63 6f 70 79 | receive|d a copy|
|00000310| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00000320| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00000330| 73 65 0d 61 6c 6f 6e 67 | 20 77 69 74 68 20 47 4e |se.along| with GN|
|00000340| 55 20 43 43 3b 20 73 65 | 65 20 74 68 65 20 66 69 |U CC; se|e the fi|
|00000350| 6c 65 20 43 4f 50 59 49 | 4e 47 2e 20 20 49 66 20 |le COPYI|NG. If |
|00000360| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 0d 74 68 |not, wri|te to.th|
|00000370| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00000380| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 36 37 35 20 |Foundati|on, 675 |
|00000390| 4d 61 73 73 20 41 76 65 | 2c 20 43 61 6d 62 72 69 |Mass Ave|, Cambri|
|000003a0| 64 67 65 2c 20 4d 41 20 | 30 32 31 33 39 2c 20 55 |dge, MA |02139, U|
|000003b0| 53 41 2e 20 20 2a 2f 0d | 0d 0d 2f 2a 20 54 68 69 |SA. */.|../* Thi|
|000003c0| 73 20 69 73 20 74 68 65 | 20 74 6f 70 20 6c 65 76 |s is the| top lev|
|000003d0| 65 6c 20 6f 66 20 63 63 | 31 2e 0d 20 20 20 49 74 |el of cc|1.. It|
|000003e0| 20 70 61 72 73 65 73 20 | 63 6f 6d 6d 61 6e 64 20 | parses |command |
|000003f0| 61 72 67 73 2c 20 6f 70 | 65 6e 73 20 66 69 6c 65 |args, op|ens file|
|00000400| 73 2c 20 69 6e 76 6f 6b | 65 73 20 74 68 65 20 76 |s, invok|es the v|
|00000410| 61 72 69 6f 75 73 20 70 | 61 73 73 65 73 0d 20 20 |arious p|asses. |
|00000420| 20 69 6e 20 74 68 65 20 | 70 72 6f 70 65 72 20 6f | in the |proper o|
|00000430| 72 64 65 72 2c 20 61 6e | 64 20 63 6f 75 6e 74 73 |rder, an|d counts|
|00000440| 20 74 68 65 20 74 69 6d | 65 20 75 73 65 64 20 62 | the tim|e used b|
|00000450| 79 20 65 61 63 68 2e 0d | 20 20 20 45 72 72 6f 72 |y each..| Error|
|00000460| 20 6d 65 73 73 61 67 65 | 73 20 61 6e 64 20 6c 6f | message|s and lo|
|00000470| 77 2d 6c 65 76 65 6c 20 | 69 6e 74 65 72 66 61 63 |w-level |interfac|
|00000480| 65 20 74 6f 20 6d 61 6c | 6c 6f 63 20 61 6c 73 6f |e to mal|loc also|
|00000490| 20 68 61 6e 64 6c 65 64 | 20 68 65 72 65 2e 20 20 | handled| here. |
|000004a0| 2a 2f 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 63 6f |*/..#inc|lude "co|
|000004b0| 6e 66 69 67 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |nfig.h".|#include|
|000004c0| 20 3c 73 74 64 69 6f 2e | 68 3e 0d 23 69 6e 63 6c | <stdio.|h>.#incl|
|000004d0| 75 64 65 20 3c 73 69 67 | 6e 61 6c 2e 68 3e 0d 23 |ude <sig|nal.h>.#|
|000004e0| 69 6e 63 6c 75 64 65 20 | 3c 73 65 74 6a 6d 70 2e |include |<setjmp.|
|000004f0| 68 3e 0d 0d 23 69 66 64 | 65 66 20 4d 50 57 0d 2f |h>..#ifd|ef MPW./|
|00000500| 2a 20 4d 50 57 20 68 61 | 73 20 69 74 73 20 69 6e |* MPW ha|s its in|
|00000510| 63 6c 75 64 65 20 66 69 | 6c 65 73 20 69 6e 20 73 |clude fi|les in s|
|00000520| 6c 69 67 68 74 6c 79 20 | 64 69 66 66 65 72 65 6e |lightly |differen|
|00000530| 74 20 70 6c 61 63 65 73 | 20 74 68 61 6e 20 55 6e |t places| than Un|
|00000540| 69 78 2e 20 2a 2f 0d 23 | 69 6e 63 6c 75 64 65 20 |ix. */.#|include |
|00000550| 3c 74 79 70 65 73 2e 68 | 3e 0d 23 65 6c 73 65 0d |<types.h|>.#else.|
|00000560| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00000570| 70 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |pes.h>.#|include |
|00000580| 3c 73 79 73 2f 73 74 61 | 74 2e 68 3e 0d 23 65 6e |<sys/sta|t.h>.#en|
|00000590| 64 69 66 20 2f 2a 20 4d | 50 57 20 2a 2f 0d 0d 23 |dif /* M|PW */..#|
|000005a0| 69 66 64 65 66 20 4d 50 | 57 0d 23 69 66 64 65 66 |ifdef MP|W.#ifdef|
|000005b0| 20 50 45 52 46 4f 52 4d | 41 4e 43 45 0d 23 69 6e | PERFORM|ANCE.#in|
|000005c0| 63 6c 75 64 65 20 3c 50 | 65 72 66 2e 68 3e 0d 23 |clude <P|erf.h>.#|
|000005d0| 65 6e 64 69 66 20 2f 2a | 20 50 45 52 46 4f 52 4d |endif /*| PERFORM|
|000005e0| 41 4e 43 45 20 2a 2f 0d | 23 65 6c 73 65 20 2f 2a |ANCE */.|#else /*|
|000005f0| 20 6e 6f 74 20 4d 50 57 | 20 2a 2f 0d 23 69 66 64 | not MPW| */.#ifd|
|00000600| 65 66 20 55 53 47 0d 23 | 75 6e 64 65 66 20 46 4c |ef USG.#|undef FL|
|00000610| 4f 41 54 0d 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |OAT.#inc|lude <sy|
|00000620| 73 2f 70 61 72 61 6d 2e | 68 3e 0d 2f 2a 20 54 68 |s/param.|h>./* Th|
|00000630| 69 73 20 69 73 20 66 6f | 72 20 68 70 75 78 2e 20 |is is fo|r hpux. |
|00000640| 20 49 74 20 69 73 20 61 | 20 72 65 61 6c 20 73 63 | It is a| real sc|
|00000650| 72 65 77 2e 20 20 54 68 | 65 79 20 73 68 6f 75 6c |rew. Th|ey shoul|
|00000660| 64 20 63 68 61 6e 67 65 | 20 68 70 75 78 2e 20 20 |d change| hpux. |
|00000670| 2a 2f 0d 23 75 6e 64 65 | 66 20 46 4c 4f 41 54 0d |*/.#unde|f FLOAT.|
|00000680| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 69 |#include| <sys/ti|
|00000690| 6d 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |mes.h>.#|include |
|000006a0| 3c 74 69 6d 65 2e 68 3e | 20 20 20 2f 2a 20 43 6f |<time.h>| /* Co|
|000006b0| 72 72 65 63 74 20 66 6f | 72 20 68 70 75 78 20 61 |rrect fo|r hpux a|
|000006c0| 74 20 6c 65 61 73 74 2e | 20 20 49 73 20 69 74 20 |t least.| Is it |
|000006d0| 67 6f 6f 64 20 6f 6e 20 | 6f 74 68 65 72 20 55 53 |good on |other US|
|000006e0| 47 3f 20 20 2a 2f 0d 23 | 75 6e 64 65 66 20 46 46 |G? */.#|undef FF|
|000006f0| 53 20 20 2f 2a 20 53 6f | 6d 65 20 73 79 73 74 65 |S /* So|me syste|
|00000700| 6d 73 20 64 65 66 69 6e | 65 20 74 68 69 73 20 69 |ms defin|e this i|
|00000710| 6e 20 70 61 72 61 6d 2e | 68 2e 20 20 2a 2f 0d 23 |n param.|h. */.#|
|00000720| 65 6c 73 65 0d 23 69 66 | 6e 64 65 66 20 56 4d 53 |else.#if|ndef VMS|
|00000730| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 74 |.#includ|e <sys/t|
|00000740| 69 6d 65 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ime.h>.#|include |
|00000750| 3c 73 79 73 2f 72 65 73 | 6f 75 72 63 65 2e 68 3e |<sys/res|ource.h>|
|00000760| 0d 23 65 6e 64 69 66 0d | 23 65 6e 64 69 66 0d 23 |.#endif.|#endif.#|
|00000770| 65 6e 64 69 66 20 2f 2a | 20 4d 50 57 20 2a 2f 0d |endif /*| MPW */.|
|00000780| 0d 23 69 6e 63 6c 75 64 | 65 20 22 69 6e 70 75 74 |.#includ|e "input|
|00000790| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 74 72 |.h".#inc|lude "tr|
|000007a0| 65 65 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ee.h".#i|nclude "|
|000007b0| 63 2d 74 72 65 65 2e 68 | 22 0d 23 69 6e 63 6c 75 |c-tree.h|".#inclu|
|000007c0| 64 65 20 22 72 74 6c 2e | 68 22 0d 23 69 6e 63 6c |de "rtl.|h".#incl|
|000007d0| 75 64 65 20 22 66 6c 61 | 67 73 2e 68 22 0d 0d 65 |ude "fla|gs.h"..e|
|000007e0| 78 74 65 72 6e 20 69 6e | 74 20 79 79 64 65 62 75 |xtern in|t yydebu|
|000007f0| 67 3b 0d 0d 65 78 74 65 | 72 6e 20 46 49 4c 45 20 |g;..exte|rn FILE |
|00000800| 2a 66 69 6e 70 75 74 3b | 0d 0d 65 78 74 65 72 6e |*finput;|..extern|
|00000810| 20 69 6e 74 20 72 65 6c | 6f 61 64 5f 63 6f 6d 70 | int rel|oad_comp|
|00000820| 6c 65 74 65 64 3b 0d 65 | 78 74 65 72 6e 20 69 6e |leted;.e|xtern in|
|00000830| 74 20 72 74 78 5f 65 71 | 75 61 6c 5f 66 75 6e 63 |t rtx_eq|ual_func|
|00000840| 74 69 6f 6e 5f 76 61 6c | 75 65 5f 6d 61 74 74 65 |tion_val|ue_matte|
|00000850| 72 73 3b 0d 0d 65 78 74 | 65 72 6e 20 76 6f 69 64 |rs;..ext|ern void|
|00000860| 20 69 6e 69 74 5f 6c 65 | 78 20 28 29 3b 0d 65 78 | init_le|x ();.ex|
|00000870| 74 65 72 6e 20 76 6f 69 | 64 20 69 6e 69 74 5f 64 |tern voi|d init_d|
|00000880| 65 63 6c 5f 70 72 6f 63 | 65 73 73 69 6e 67 20 28 |ecl_proc|essing (|
|00000890| 29 3b 0d 65 78 74 65 72 | 6e 20 76 6f 69 64 20 69 |);.exter|n void i|
|000008a0| 6e 69 74 5f 74 72 65 65 | 20 28 29 3b 0d 65 78 74 |nit_tree| ();.ext|
|000008b0| 65 72 6e 20 76 6f 69 64 | 20 69 6e 69 74 5f 72 74 |ern void| init_rt|
|000008c0| 6c 20 28 29 3b 0d 65 78 | 74 65 72 6e 20 76 6f 69 |l ();.ex|tern voi|
|000008d0| 64 20 69 6e 69 74 5f 6f | 70 74 61 62 73 20 28 29 |d init_o|ptabs ()|
|000008e0| 3b 0d 65 78 74 65 72 6e | 20 76 6f 69 64 20 69 6e |;.extern| void in|
|000008f0| 69 74 5f 72 65 67 5f 73 | 65 74 73 20 28 29 3b 0d |it_reg_s|ets ();.|
|00000900| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 64 75 6d 70 |extern v|oid dump|
|00000910| 5f 66 6c 6f 77 5f 69 6e | 66 6f 20 28 29 3b 0d 65 |_flow_in|fo ();.e|
|00000920| 78 74 65 72 6e 20 76 6f | 69 64 20 64 75 6d 70 5f |xtern vo|id dump_|
|00000930| 6c 6f 63 61 6c 5f 61 6c | 6c 6f 63 20 28 29 3b 0d |local_al|loc ();.|
|00000940| 0d 76 6f 69 64 20 72 65 | 73 74 5f 6f 66 5f 64 65 |.void re|st_of_de|
|00000950| 63 6c 5f 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 20 28 |cl_compi|lation (|
|00000960| 29 3b 0d 76 6f 69 64 20 | 65 72 72 6f 72 20 28 29 |);.void |error ()|
|00000970| 3b 0d 76 6f 69 64 20 65 | 72 72 6f 72 5f 77 69 74 |;.void e|rror_wit|
|00000980| 68 5f 66 69 6c 65 5f 61 | 6e 64 5f 6c 69 6e 65 20 |h_file_a|nd_line |
|00000990| 28 29 3b 0d 76 6f 69 64 | 20 66 61 6e 63 79 5f 61 |();.void| fancy_a|
|000009a0| 62 6f 72 74 20 28 29 3b | 0d 76 6f 69 64 20 73 65 |bort ();|.void se|
|000009b0| 74 5f 74 61 72 67 65 74 | 5f 73 77 69 74 63 68 20 |t_target|_switch |
|000009c0| 28 29 3b 0d 76 6f 69 64 | 20 70 72 69 6e 74 5f 74 |();.void| print_t|
|000009d0| 61 72 67 65 74 5f 73 77 | 69 74 63 68 5f 64 65 66 |arget_sw|itch_def|
|000009e0| 61 75 6c 74 73 20 28 29 | 3b 0d 0d 2f 2a 20 42 69 |aults ()|;../* Bi|
|000009f0| 74 20 66 6c 61 67 73 20 | 74 68 61 74 20 73 70 65 |t flags |that spe|
|00000a00| 63 69 66 79 20 74 68 65 | 20 6d 61 63 68 69 6e 65 |cify the| machine|
|00000a10| 20 73 75 62 74 79 70 65 | 20 77 65 20 61 72 65 20 | subtype| we are |
|00000a20| 63 6f 6d 70 69 6c 69 6e | 67 20 66 6f 72 2e 0d 20 |compilin|g for.. |
|00000a30| 20 20 42 69 74 73 20 61 | 72 65 20 74 65 73 74 65 | Bits a|re teste|
|00000a40| 64 20 75 73 69 6e 67 20 | 6d 61 63 72 6f 73 20 54 |d using |macros T|
|00000a50| 41 52 47 45 54 5f 2e 2e | 2e 20 64 65 66 69 6e 65 |ARGET_..|. define|
|00000a60| 64 20 69 6e 20 74 68 65 | 20 74 6d 2d 2e 2e 2e 68 |d in the| tm-...h|
|00000a70| 20 66 69 6c 65 0d 20 20 | 20 61 6e 64 20 73 65 74 | file. | and set|
|00000a80| 20 62 79 20 60 2d 6d 2e | 2e 2e 27 20 73 77 69 74 | by `-m.|..' swit|
|00000a90| 63 68 65 73 2e 20 20 2a | 2f 0d 0d 69 6e 74 20 74 |ches. *|/..int t|
|00000aa0| 61 72 67 65 74 5f 66 6c | 61 67 73 3b 0d 0d 2f 2a |arget_fl|ags;../*|
|00000ab0| 20 4e 61 6d 65 20 6f 66 | 20 63 75 72 72 65 6e 74 | Name of| current|
|00000ac0| 20 6f 72 69 67 69 6e 61 | 6c 20 73 6f 75 72 63 65 | origina|l source|
|00000ad0| 20 66 69 6c 65 20 28 77 | 68 61 74 20 77 61 73 20 | file (w|hat was |
|00000ae0| 69 6e 70 75 74 20 74 6f | 20 63 70 70 29 2e 0d 20 |input to| cpp).. |
|00000af0| 20 20 54 68 69 73 20 63 | 6f 6d 65 73 20 66 72 6f | This c|omes fro|
|00000b00| 6d 20 65 61 63 68 20 23 | 2d 63 6f 6d 6d 61 6e 64 |m each #|-command|
|00000b10| 20 69 6e 20 74 68 65 20 | 61 63 74 75 61 6c 20 69 | in the |actual i|
|00000b20| 6e 70 75 74 2e 20 20 2a | 2f 0d 0d 63 68 61 72 20 |nput. *|/..char |
|00000b30| 2a 69 6e 70 75 74 5f 66 | 69 6c 65 6e 61 6d 65 3b |*input_f|ilename;|
|00000b40| 0d 0d 2f 2a 20 4e 61 6d | 65 20 6f 66 20 74 6f 70 |../* Nam|e of top|
|00000b50| 2d 6c 65 76 65 6c 20 6f | 72 69 67 69 6e 61 6c 20 |-level o|riginal |
|00000b60| 73 6f 75 72 63 65 20 66 | 69 6c 65 20 28 77 68 61 |source f|ile (wha|
|00000b70| 74 20 77 61 73 20 69 6e | 70 75 74 20 74 6f 20 63 |t was in|put to c|
|00000b80| 70 70 29 2e 0d 20 20 20 | 54 68 69 73 20 63 6f 6d |pp).. |This com|
|00000b90| 65 73 20 66 72 6f 6d 20 | 74 68 65 20 23 2d 63 6f |es from |the #-co|
|00000ba0| 6d 6d 61 6e 64 20 61 74 | 20 74 68 65 20 62 65 67 |mmand at| the beg|
|00000bb0| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 61 63 |inning o|f the ac|
|00000bc0| 74 75 61 6c 20 69 6e 70 | 75 74 2e 0d 20 20 20 49 |tual inp|ut.. I|
|00000bd0| 66 20 74 68 65 72 65 20 | 69 73 6e 27 74 20 61 6e |f there |isn't an|
|00000be0| 79 20 74 68 65 72 65 2c | 20 74 68 65 6e 20 74 68 |y there,| then th|
|00000bf0| 69 73 20 69 73 20 74 68 | 65 20 63 63 31 20 69 6e |is is th|e cc1 in|
|00000c00| 70 75 74 20 66 69 6c 65 | 20 6e 61 6d 65 2e 20 20 |put file| name. |
|00000c10| 2a 2f 0d 0d 63 68 61 72 | 20 2a 6d 61 69 6e 5f 69 |*/..char| *main_i|
|00000c20| 6e 70 75 74 5f 66 69 6c | 65 6e 61 6d 65 3b 0d 0d |nput_fil|ename;..|
|00000c30| 2f 2a 20 43 75 72 72 65 | 6e 74 20 6c 69 6e 65 20 |/* Curre|nt line |
|00000c40| 6e 75 6d 62 65 72 20 69 | 6e 20 72 65 61 6c 20 73 |number i|n real s|
|00000c50| 6f 75 72 63 65 20 66 69 | 6c 65 2e 20 20 2a 2f 0d |ource fi|le. */.|
|00000c60| 0d 69 6e 74 20 6c 69 6e | 65 6e 6f 3b 0d 0d 2f 2a |.int lin|eno;../*|
|00000c70| 20 53 74 61 63 6b 20 6f | 66 20 63 75 72 72 65 6e | Stack o|f curren|
|00000c80| 74 6c 79 20 70 65 6e 64 | 69 6e 67 20 69 6e 70 75 |tly pend|ing inpu|
|00000c90| 74 20 66 69 6c 65 73 2e | 20 20 2a 2f 0d 0d 73 74 |t files.| */..st|
|00000ca0| 72 75 63 74 20 66 69 6c | 65 5f 73 74 61 63 6b 20 |ruct fil|e_stack |
|00000cb0| 2a 69 6e 70 75 74 5f 66 | 69 6c 65 5f 73 74 61 63 |*input_f|ile_stac|
|00000cc0| 6b 3b 0d 0d 2f 2a 20 49 | 6e 63 72 65 6d 65 6e 74 |k;../* I|ncrement|
|00000cd0| 65 64 20 6f 6e 20 65 61 | 63 68 20 63 68 61 6e 67 |ed on ea|ch chang|
|00000ce0| 65 20 74 6f 20 69 6e 70 | 75 74 5f 66 69 6c 65 5f |e to inp|ut_file_|
|00000cf0| 73 74 61 63 6b 2e 20 20 | 2a 2f 0d 69 6e 74 20 69 |stack. |*/.int i|
|00000d00| 6e 70 75 74 5f 66 69 6c | 65 5f 73 74 61 63 6b 5f |nput_fil|e_stack_|
|00000d10| 74 69 63 6b 3b 0d 0d 2f | 2a 20 46 55 4e 43 54 49 |tick;../|* FUNCTI|
|00000d20| 4f 4e 5f 44 45 43 4c 20 | 66 6f 72 20 66 75 6e 63 |ON_DECL |for func|
|00000d30| 74 69 6f 6e 20 6e 6f 77 | 20 62 65 69 6e 67 20 70 |tion now| being p|
|00000d40| 61 72 73 65 64 20 6f 72 | 20 63 6f 6d 70 69 6c 65 |arsed or| compile|
|00000d50| 64 2e 20 20 2a 2f 0d 0d | 65 78 74 65 72 6e 20 74 |d. */..|extern t|
|00000d60| 72 65 65 20 63 75 72 72 | 65 6e 74 5f 66 75 6e 63 |ree curr|ent_func|
|00000d70| 74 69 6f 6e 5f 64 65 63 | 6c 3b 0d 0d 2f 2a 20 4e |tion_dec|l;../* N|
|00000d80| 61 6d 65 20 74 6f 20 75 | 73 65 20 61 73 20 62 61 |ame to u|se as ba|
|00000d90| 73 65 20 6f 66 20 6e 61 | 6d 65 73 20 66 6f 72 20 |se of na|mes for |
|00000da0| 64 75 6d 70 20 6f 75 74 | 70 75 74 20 66 69 6c 65 |dump out|put file|
|00000db0| 73 2e 20 20 2a 2f 0d 0d | 63 68 61 72 20 2a 64 75 |s. */..|char *du|
|00000dc0| 6d 70 5f 62 61 73 65 5f | 6e 61 6d 65 3b 0d 0d 2f |mp_base_|name;../|
|00000dd0| 2a 20 46 6c 61 67 73 20 | 73 61 79 69 6e 67 20 77 |* Flags |saying w|
|00000de0| 68 69 63 68 20 6b 69 6e | 64 73 20 6f 66 20 64 65 |hich kin|ds of de|
|00000df0| 62 75 67 67 69 6e 67 20 | 64 75 6d 70 20 68 61 76 |bugging |dump hav|
|00000e00| 65 20 62 65 65 6e 20 72 | 65 71 75 65 73 74 65 64 |e been r|equested|
|00000e10| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 72 74 6c 5f 64 |. */..i|nt rtl_d|
|00000e20| 75 6d 70 20 3d 20 30 3b | 0d 69 6e 74 20 72 74 6c |ump = 0;|.int rtl|
|00000e30| 5f 64 75 6d 70 5f 61 6e | 64 5f 65 78 69 74 20 3d |_dump_an|d_exit =|
|00000e40| 20 30 3b 0d 69 6e 74 20 | 6a 75 6d 70 5f 6f 70 74 | 0;.int |jump_opt|
|00000e50| 5f 64 75 6d 70 20 3d 20 | 30 3b 0d 69 6e 74 20 63 |_dump = |0;.int c|
|00000e60| 73 65 5f 64 75 6d 70 20 | 3d 20 30 3b 0d 69 6e 74 |se_dump |= 0;.int|
|00000e70| 20 6c 6f 6f 70 5f 64 75 | 6d 70 20 3d 20 30 3b 0d | loop_du|mp = 0;.|
|00000e80| 69 6e 74 20 66 6c 6f 77 | 5f 64 75 6d 70 20 3d 20 |int flow|_dump = |
|00000e90| 30 3b 0d 69 6e 74 20 63 | 6f 6d 62 69 6e 65 5f 64 |0;.int c|ombine_d|
|00000ea0| 75 6d 70 20 3d 20 30 3b | 0d 69 6e 74 20 6c 6f 63 |ump = 0;|.int loc|
|00000eb0| 61 6c 5f 72 65 67 5f 64 | 75 6d 70 20 3d 20 30 3b |al_reg_d|ump = 0;|
|00000ec0| 0d 69 6e 74 20 67 6c 6f | 62 61 6c 5f 72 65 67 5f |.int glo|bal_reg_|
|00000ed0| 64 75 6d 70 20 3d 20 30 | 3b 0d 69 6e 74 20 6a 75 |dump = 0|;.int ju|
|00000ee0| 6d 70 32 5f 6f 70 74 5f | 64 75 6d 70 20 3d 20 30 |mp2_opt_|dump = 0|
|00000ef0| 3b 0d 69 6e 74 20 64 62 | 72 5f 73 63 68 65 64 5f |;.int db|r_sched_|
|00000f00| 64 75 6d 70 20 3d 20 30 | 3b 0d 0d 2f 2a 20 31 20 |dump = 0|;../* 1 |
|00000f10| 3d 3e 20 77 72 69 74 65 | 20 67 64 62 20 64 65 62 |=> write| gdb deb|
|00000f20| 75 67 67 69 6e 67 20 6f | 75 74 70 75 74 20 28 75 |ugging o|utput (u|
|00000f30| 73 69 6e 67 20 73 79 6d | 6f 75 74 2e 63 29 2e 20 |sing sym|out.c). |
|00000f40| 20 2d 67 0d 20 20 20 32 | 20 3d 3e 20 77 72 69 74 | -g. 2| => writ|
|00000f50| 65 20 64 62 78 20 64 65 | 62 75 67 67 69 6e 67 20 |e dbx de|bugging |
|00000f60| 6f 75 74 70 75 74 20 28 | 75 73 69 6e 67 20 64 62 |output (|using db|
|00000f70| 78 6f 75 74 2e 63 29 2e | 20 20 2d 47 0d 20 20 20 |xout.c).| -G. |
|00000f80| 33 20 3d 3e 20 77 72 69 | 74 65 20 73 64 62 20 64 |3 => wri|te sdb d|
|00000f90| 65 62 75 67 67 69 6e 67 | 20 6f 75 74 70 75 74 20 |ebugging| output |
|00000fa0| 28 75 73 69 6e 67 20 73 | 64 62 6f 75 74 2e 63 29 |(using s|dbout.c)|
|00000fb0| 2e 20 20 2d 67 2e 20 20 | 2a 2f 0d 0d 65 6e 75 6d |. -g. |*/..enum|
|00000fc0| 20 64 65 62 75 67 67 65 | 72 20 77 72 69 74 65 5f | debugge|r write_|
|00000fd0| 73 79 6d 62 6f 6c 73 20 | 3d 20 4e 4f 5f 44 45 42 |symbols |= NO_DEB|
|00000fe0| 55 47 3b 0d 0d 2f 2a 20 | 4e 6f 6e 7a 65 72 6f 20 |UG;../* |Nonzero |
|00000ff0| 6d 65 61 6e 73 20 63 61 | 6e 20 75 73 65 20 6f 75 |means ca|n use ou|
|00001000| 72 20 6f 77 6e 20 65 78 | 74 65 6e 73 69 6f 6e 73 |r own ex|tensions|
|00001010| 20 74 6f 20 44 42 58 20 | 66 6f 72 6d 61 74 2e 0d | to DBX |format..|
|00001020| 20 20 20 52 65 6c 65 76 | 61 6e 74 20 6f 6e 6c 79 | Relev|ant only|
|00001030| 20 77 69 74 68 20 77 72 | 69 74 65 5f 73 79 6d 62 | with wr|ite_symb|
|00001040| 6f 6c 73 20 3d 3d 20 44 | 42 58 5f 44 45 42 55 47 |ols == D|BX_DEBUG|
|00001050| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 75 73 65 5f 67 |. */..i|nt use_g|
|00001060| 64 62 5f 64 62 78 5f 65 | 78 74 65 6e 73 69 6f 6e |db_dbx_e|xtension|
|00001070| 73 3b 0d 0d 2f 2a 20 4e | 6f 6e 7a 65 72 6f 20 6d |s;../* N|onzero m|
|00001080| 65 61 6e 73 20 64 6f 20 | 6f 70 74 69 6d 69 7a 61 |eans do |optimiza|
|00001090| 74 69 6f 6e 73 2e 20 20 | 2d 6f 70 74 2e 20 20 2a |tions. |-opt. *|
|000010a0| 2f 0d 0d 69 6e 74 20 6f | 70 74 69 6d 69 7a 65 20 |/..int o|ptimize |
|000010b0| 3d 20 30 3b 0d 0d 2f 2a | 20 4e 6f 6e 7a 65 72 6f |= 0;../*| Nonzero|
|000010c0| 20 6d 65 61 6e 73 20 60 | 63 68 61 72 27 20 73 68 | means `|char' sh|
|000010d0| 6f 75 6c 64 20 62 65 20 | 73 69 67 6e 65 64 2e 20 |ould be |signed. |
|000010e0| 20 2a 2f 0d 0d 69 6e 74 | 20 66 6c 61 67 5f 73 69 | */..int| flag_si|
|000010f0| 67 6e 65 64 5f 63 68 61 | 72 3b 0d 0d 2f 2a 20 4e |gned_cha|r;../* N|
|00001100| 6f 6e 7a 65 72 6f 20 6d | 65 61 6e 73 20 67 69 76 |onzero m|eans giv|
|00001110| 65 20 61 6e 20 65 6e 75 | 6d 20 74 79 70 65 20 6f |e an enu|m type o|
|00001120| 6e 6c 79 20 61 73 20 6d | 61 6e 79 20 62 79 74 65 |nly as m|any byte|
|00001130| 73 20 61 73 20 69 74 20 | 6e 65 65 64 73 2e 20 20 |s as it |needs. |
|00001140| 2a 2f 0d 0d 69 6e 74 20 | 66 6c 61 67 5f 73 68 6f |*/..int |flag_sho|
|00001150| 72 74 5f 65 6e 75 6d 73 | 3b 0d 0d 2f 2a 20 4e 6f |rt_enums|;../* No|
|00001160| 6e 7a 65 72 6f 20 66 6f | 72 20 2d 66 63 61 6c 6c |nzero fo|r -fcall|
|00001170| 65 72 2d 73 61 76 65 73 | 3a 20 61 6c 6c 6f 63 61 |er-saves|: alloca|
|00001180| 74 65 20 76 61 6c 75 65 | 73 20 69 6e 20 72 65 67 |te value|s in reg|
|00001190| 73 20 74 68 61 74 20 6e | 65 65 64 20 74 6f 0d 20 |s that n|eed to. |
|000011a0| 20 20 62 65 20 73 61 76 | 65 64 20 61 63 72 6f 73 | be sav|ed acros|
|000011b0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 73 |s functi|on calls|
|000011c0| 2c 20 69 66 20 74 68 61 | 74 20 70 72 6f 64 75 63 |, if tha|t produc|
|000011d0| 65 73 20 6f 76 65 72 61 | 6c 6c 20 62 65 74 74 65 |es overa|ll bette|
|000011e0| 72 20 63 6f 64 65 2e 0d | 20 20 20 4f 70 74 69 6f |r code..| Optio|
|000011f0| 6e 61 6c 20 6e 6f 77 2c | 20 73 6f 20 70 65 6f 70 |nal now,| so peop|
|00001200| 6c 65 20 63 61 6e 20 74 | 65 73 74 20 69 74 2e 20 |le can t|est it. |
|00001210| 20 2a 2f 0d 0d 23 69 66 | 64 65 66 20 44 45 46 41 | */..#if|def DEFA|
|00001220| 55 4c 54 5f 43 41 4c 4c | 45 52 5f 53 41 56 45 53 |ULT_CALL|ER_SAVES|
|00001230| 0d 69 6e 74 20 66 6c 61 | 67 5f 63 61 6c 6c 65 72 |.int fla|g_caller|
|00001240| 5f 73 61 76 65 73 20 3d | 20 31 3b 0d 23 65 6c 73 |_saves =| 1;.#els|
|00001250| 65 0d 69 6e 74 20 66 6c | 61 67 5f 63 61 6c 6c 65 |e.int fl|ag_calle|
|00001260| 72 5f 73 61 76 65 73 20 | 3d 20 30 3b 0d 23 65 6e |r_saves |= 0;.#en|
|00001270| 64 69 66 0d 0d 2f 2a 20 | 4e 6f 6e 7a 65 72 6f 20 |dif../* |Nonzero |
|00001280| 66 6f 72 20 2d 66 70 63 | 63 2d 73 74 72 75 63 74 |for -fpc|c-struct|
|00001290| 2d 72 65 74 75 72 6e 3a | 20 72 65 74 75 72 6e 20 |-return:| return |
|000012a0| 76 61 6c 75 65 73 20 74 | 68 65 20 73 61 6d 65 20 |values t|he same |
|000012b0| 77 61 79 20 50 43 43 20 | 64 6f 65 73 2e 20 20 2a |way PCC |does. *|
|000012c0| 2f 0d 0d 69 6e 74 20 66 | 6c 61 67 5f 70 63 63 5f |/..int f|lag_pcc_|
|000012d0| 73 74 72 75 63 74 5f 72 | 65 74 75 72 6e 20 3d 20 |struct_r|eturn = |
|000012e0| 30 3b 0d 0d 2f 2a 20 4e | 6f 6e 7a 65 72 6f 20 66 |0;../* N|onzero f|
|000012f0| 6f 72 20 2d 66 66 6f 72 | 63 65 2d 6d 65 6d 3a 20 |or -ffor|ce-mem: |
|00001300| 6c 6f 61 64 20 6d 65 6d | 6f 72 79 20 76 61 6c 75 |load mem|ory valu|
|00001310| 65 20 69 6e 74 6f 20 61 | 20 72 65 67 69 73 74 65 |e into a| registe|
|00001320| 72 0d 20 20 20 62 65 66 | 6f 72 65 20 61 72 69 74 |r. bef|ore arit|
|00001330| 68 6d 65 74 69 63 20 6f | 6e 20 69 74 2e 20 20 54 |hmetic o|n it. T|
|00001340| 68 69 73 20 6d 61 6b 65 | 73 20 62 65 74 74 65 72 |his make|s better|
|00001350| 20 63 73 65 20 62 75 74 | 20 73 6c 6f 77 65 72 20 | cse but| slower |
|00001360| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 2e 20 20 2a 2f |compilat|ion. */|
|00001370| 0d 0d 69 6e 74 20 66 6c | 61 67 5f 66 6f 72 63 65 |..int fl|ag_force|
|00001380| 5f 6d 65 6d 20 3d 20 30 | 3b 0d 0d 2f 2a 20 4e 6f |_mem = 0|;../* No|
|00001390| 6e 7a 65 72 6f 20 66 6f | 72 20 2d 66 66 6f 72 63 |nzero fo|r -fforc|
|000013a0| 65 2d 61 64 64 72 3a 20 | 6c 6f 61 64 20 6d 65 6d |e-addr: |load mem|
|000013b0| 6f 72 79 20 61 64 64 72 | 65 73 73 20 69 6e 74 6f |ory addr|ess into|
|000013c0| 20 61 20 72 65 67 69 73 | 74 65 72 20 62 65 66 6f | a regis|ter befo|
|000013d0| 72 65 0d 20 20 20 72 65 | 66 65 72 65 6e 63 65 20 |re. re|ference |
|000013e0| 74 6f 20 6d 65 6d 6f 72 | 79 2e 20 20 54 68 69 73 |to memor|y. This|
|000013f0| 20 6d 61 6b 65 73 20 62 | 65 74 74 65 72 20 63 73 | makes b|etter cs|
|00001400| 65 20 62 75 74 20 73 6c | 6f 77 65 72 20 63 6f 6d |e but sl|ower com|
|00001410| 70 69 6c 61 74 69 6f 6e | 2e 20 20 2a 2f 0d 0d 69 |pilation|. */..i|
|00001420| 6e 74 20 66 6c 61 67 5f | 66 6f 72 63 65 5f 61 64 |nt flag_|force_ad|
|00001430| 64 72 20 3d 20 30 3b 0d | 0d 2f 2a 20 4e 6f 6e 7a |dr = 0;.|./* Nonz|
|00001440| 65 72 6f 20 66 6f 72 20 | 2d 66 64 65 66 65 72 2d |ero for |-fdefer-|
|00001450| 70 6f 70 3a 20 64 6f 6e | 27 74 20 70 6f 70 20 61 |pop: don|'t pop a|
|00001460| 72 67 73 20 61 66 74 65 | 72 20 65 61 63 68 20 66 |rgs afte|r each f|
|00001470| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 3b 0d 20 20 |unction |call;. |
|00001480| 20 69 6e 73 74 65 61 64 | 20 73 61 76 65 20 74 68 | instead| save th|
|00001490| 65 6d 20 75 70 20 74 6f | 20 70 6f 70 20 6d 61 6e |em up to| pop man|
|000014a0| 79 20 63 61 6c 6c 73 27 | 20 61 72 67 73 20 77 69 |y calls'| args wi|
|000014b0| 74 68 20 6f 6e 65 20 69 | 6e 73 6e 73 2e 20 20 2a |th one i|nsns. *|
|000014c0| 2f 0d 0d 69 6e 74 20 66 | 6c 61 67 5f 64 65 66 65 |/..int f|lag_defe|
|000014d0| 72 5f 70 6f 70 20 3d 20 | 31 3b 0d 0d 2f 2a 20 4e |r_pop = |1;../* N|
|000014e0| 6f 6e 7a 65 72 6f 20 66 | 6f 72 20 2d 66 66 6c 6f |onzero f|or -fflo|
|000014f0| 61 74 2d 73 74 6f 72 65 | 3a 20 64 6f 6e 27 74 20 |at-store|: don't |
|00001500| 61 6c 6c 6f 63 61 74 65 | 20 66 6c 6f 61 74 73 20 |allocate| floats |
|00001510| 61 6e 64 20 64 6f 75 62 | 6c 65 73 0d 20 20 20 69 |and doub|les. i|
|00001520| 6e 20 65 78 74 65 6e 64 | 65 64 2d 70 72 65 63 69 |n extend|ed-preci|
|00001530| 73 69 6f 6e 20 72 65 67 | 69 73 74 65 72 73 2e 20 |sion reg|isters. |
|00001540| 20 2a 2f 0d 0d 69 6e 74 | 20 66 6c 61 67 5f 66 6c | */..int| flag_fl|
|00001550| 6f 61 74 5f 73 74 6f 72 | 65 20 3d 20 30 3b 0d 0d |oat_stor|e = 0;..|
|00001560| 2f 2a 20 4e 6f 6e 7a 65 | 72 6f 20 66 6f 72 20 2d |/* Nonze|ro for -|
|00001570| 66 63 6f 6d 62 69 6e 65 | 2d 72 65 67 73 3a 0d 20 |fcombine|-regs:. |
|00001580| 20 20 61 6c 6c 6f 77 20 | 69 6e 73 74 72 75 63 74 | allow |instruct|
|00001590| 69 6f 6e 20 63 6f 6d 62 | 69 6e 65 72 20 74 6f 20 |ion comb|iner to |
|000015a0| 63 6f 6d 62 69 6e 65 20 | 61 6e 20 69 6e 73 6e 0d |combine |an insn.|
|000015b0| 20 20 20 74 68 61 74 20 | 6a 75 73 74 20 63 6f 70 | that |just cop|
|000015c0| 69 65 73 20 6f 6e 65 20 | 72 65 67 20 74 6f 20 61 |ies one |reg to a|
|000015d0| 6e 6f 74 68 65 72 2e 20 | 20 2a 2f 0d 0d 69 6e 74 |nother. | */..int|
|000015e0| 20 66 6c 61 67 5f 63 6f | 6d 62 69 6e 65 5f 72 65 | flag_co|mbine_re|
|000015f0| 67 73 20 3d 20 30 3b 0d | 0d 2f 2a 20 4e 6f 6e 7a |gs = 0;.|./* Nonz|
|00001600| 65 72 6f 20 65 6e 61 62 | 6c 65 73 20 73 74 72 65 |ero enab|les stre|
|00001610| 6e 67 74 68 2d 72 65 64 | 75 63 74 69 6f 6e 20 69 |ngth-red|uction i|
|00001620| 6e 20 6c 6f 6f 70 2e 63 | 2e 20 20 2a 2f 0d 0d 69 |n loop.c|. */..i|
|00001630| 6e 74 20 66 6c 61 67 5f | 73 74 72 65 6e 67 74 68 |nt flag_|strength|
|00001640| 5f 72 65 64 75 63 65 20 | 3d 20 30 3b 0d 0d 2f 2a |_reduce |= 0;../*|
|00001650| 20 4e 6f 6e 7a 65 72 6f | 20 66 6f 72 20 2d 66 77 | Nonzero| for -fw|
|00001660| 72 69 74 61 62 6c 65 2d | 73 74 72 69 6e 67 73 3a |ritable-|strings:|
|00001670| 0d 20 20 20 73 74 6f 72 | 65 20 73 74 72 69 6e 67 |. stor|e string|
|00001680| 20 63 6f 6e 73 74 61 6e | 74 73 20 69 6e 20 64 61 | constan|ts in da|
|00001690| 74 61 20 73 65 67 6d 65 | 6e 74 61 6e 64 20 64 6f |ta segme|ntand do|
|000016a0| 6e 27 74 20 75 6e 69 71 | 75 69 7a 65 20 74 68 65 |n't uniq|uize the|
|000016b0| 6d 2e 20 20 2a 2f 0d 0d | 69 6e 74 20 66 6c 61 67 |m. */..|int flag|
|000016c0| 5f 77 72 69 74 61 62 6c | 65 5f 73 74 72 69 6e 67 |_writabl|e_string|
|000016d0| 73 20 3d 20 30 3b 0d 0d | 2f 2a 20 4e 6f 6e 7a 65 |s = 0;..|/* Nonze|
|000016e0| 72 6f 20 6d 65 61 6e 73 | 20 64 6f 6e 27 74 20 70 |ro means| don't p|
|000016f0| 75 74 20 61 64 64 72 65 | 73 73 65 73 20 6f 66 20 |ut addre|sses of |
|00001700| 63 6f 6e 73 74 61 6e 74 | 20 66 75 6e 63 74 69 6f |constant| functio|
|00001710| 6e 73 20 69 6e 20 72 65 | 67 69 73 74 65 72 73 2e |ns in re|gisters.|
|00001720| 0d 20 20 20 55 73 65 64 | 20 66 6f 72 20 63 6f 6d |. Used| for com|
|00001730| 70 69 6c 69 6e 67 20 74 | 68 65 20 55 6e 69 78 20 |piling t|he Unix |
|00001740| 6b 65 72 6e 65 6c 2c 20 | 77 68 65 72 65 20 73 74 |kernel, |where st|
|00001750| 72 61 6e 67 65 20 73 75 | 62 73 74 69 74 75 74 69 |range su|bstituti|
|00001760| 6f 6e 73 20 61 72 65 0d | 20 20 20 64 6f 6e 65 20 |ons are.| done |
|00001770| 6f 6e 20 74 68 65 20 61 | 73 73 65 6d 62 6c 79 20 |on the a|ssembly |
|00001780| 6f 75 74 70 75 74 2e 20 | 20 2a 2f 0d 0d 69 6e 74 |output. | */..int|
|00001790| 20 66 6c 61 67 5f 6e 6f | 5f 66 75 6e 63 74 69 6f | flag_no|_functio|
|000017a0| 6e 5f 63 73 65 20 3d 20 | 30 3b 0d 0d 2f 2a 20 4e |n_cse = |0;../* N|
|000017b0| 6f 6e 7a 65 72 6f 20 66 | 6f 72 20 2d 66 6f 6d 69 |onzero f|or -fomi|
|000017c0| 74 2d 66 72 61 6d 65 2d | 70 6f 69 6e 74 65 72 3a |t-frame-|pointer:|
|000017d0| 0d 20 20 20 64 6f 6e 27 | 74 20 6d 61 6b 65 20 61 |. don'|t make a|
|000017e0| 20 66 72 61 6d 65 20 70 | 6f 69 6e 74 65 72 20 69 | frame p|ointer i|
|000017f0| 6e 20 73 69 6d 70 6c 65 | 20 66 75 6e 63 74 69 6f |n simple| functio|
|00001800| 6e 73 20 74 68 61 74 20 | 64 6f 6e 27 74 20 72 65 |ns that |don't re|
|00001810| 71 75 69 72 65 20 6f 6e | 65 2e 20 20 2a 2f 0d 0d |quire on|e. */..|
|00001820| 69 6e 74 20 66 6c 61 67 | 5f 6f 6d 69 74 5f 66 72 |int flag|_omit_fr|
|00001830| 61 6d 65 5f 70 6f 69 6e | 74 65 72 20 3d 20 30 3b |ame_poin|ter = 0;|
|00001840| 0d 0d 2f 2a 20 4e 6f 6e | 7a 65 72 6f 20 74 6f 20 |../* Non|zero to |
|00001850| 69 6e 68 69 62 69 74 20 | 75 73 65 20 6f 66 20 64 |inhibit |use of d|
|00001860| 65 66 69 6e 65 5f 6f 70 | 74 69 6d 69 7a 61 74 69 |efine_op|timizati|
|00001870| 6f 6e 20 70 65 65 70 68 | 6f 6c 65 20 6f 70 74 73 |on peeph|ole opts|
|00001880| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 66 6c 61 67 5f |. */..i|nt flag_|
|00001890| 6e 6f 5f 70 65 65 70 68 | 6f 6c 65 20 3d 20 30 3b |no_peeph|ole = 0;|
|000018a0| 0d 0d 2f 2a 20 4e 6f 6e | 7a 65 72 6f 20 6d 65 61 |../* Non|zero mea|
|000018b0| 6e 73 20 61 6c 6c 20 72 | 65 66 65 72 65 6e 63 65 |ns all r|eference|
|000018c0| 73 20 74 68 72 6f 75 67 | 68 20 70 6f 69 6e 74 65 |s throug|h pointe|
|000018d0| 72 73 20 61 72 65 20 76 | 6f 6c 61 74 69 6c 65 2e |rs are v|olatile.|
|000018e0| 20 20 2a 2f 0d 0d 69 6e | 74 20 66 6c 61 67 5f 76 | */..in|t flag_v|
|000018f0| 6f 6c 61 74 69 6c 65 3b | 0d 0d 2f 2a 20 4e 6f 6e |olatile;|../* Non|
|00001900| 7a 65 72 6f 20 6d 65 61 | 6e 73 20 6a 75 73 74 20 |zero mea|ns just |
|00001910| 64 6f 20 73 79 6e 74 61 | 78 20 63 68 65 63 6b 69 |do synta|x checki|
|00001920| 6e 67 3b 20 64 6f 6e 27 | 74 20 6f 75 74 70 75 74 |ng; don'|t output|
|00001930| 20 61 6e 79 74 68 69 6e | 67 2e 20 20 2a 2f 0d 0d | anythin|g. */..|
|00001940| 69 6e 74 20 66 6c 61 67 | 5f 73 79 6e 74 61 78 5f |int flag|_syntax_|
|00001950| 6f 6e 6c 79 20 3d 20 30 | 3b 0d 0d 2f 2a 20 4e 6f |only = 0|;../* No|
|00001960| 6e 7a 65 72 6f 20 6d 65 | 61 6e 73 20 64 6f 20 73 |nzero me|ans do s|
|00001970| 74 75 70 69 64 20 72 65 | 67 69 73 74 65 72 20 61 |tupid re|gister a|
|00001980| 6c 6c 6f 63 61 74 69 6f | 6e 2e 20 20 2d 6e 6f 72 |llocatio|n. -nor|
|00001990| 65 67 2e 0d 20 20 20 54 | 68 69 73 20 61 6e 64 20 |eg.. T|his and |
|000019a0| 60 6f 70 74 69 6d 69 7a | 65 27 20 61 72 65 20 63 |`optimiz|e' are c|
|000019b0| 6f 6e 74 72 6f 6c 6c 65 | 64 20 62 79 20 64 69 66 |ontrolle|d by dif|
|000019c0| 66 65 72 65 6e 74 20 73 | 77 69 74 63 68 65 73 20 |ferent s|witches |
|000019d0| 69 6e 20 63 63 31 2c 0d | 20 20 20 62 75 74 20 6e |in cc1,.| but n|
|000019e0| 6f 72 6d 61 6c 6c 79 20 | 63 63 20 63 6f 6e 74 72 |ormally |cc contr|
|000019f0| 6f 6c 73 20 74 68 65 6d | 20 62 6f 74 68 20 77 69 |ols them| both wi|
|00001a00| 74 68 20 74 68 65 20 2d | 4f 20 73 77 69 74 63 68 |th the -|O switch|
|00001a10| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 6f 62 65 79 5f |. */..i|nt obey_|
|00001a20| 72 65 67 64 65 63 6c 73 | 20 3d 20 30 3b 0d 0d 2f |regdecls| = 0;../|
|00001a30| 2a 20 44 6f 6e 27 74 20 | 70 72 69 6e 74 20 66 75 |* Don't |print fu|
|00001a40| 6e 63 74 69 6f 6e 73 20 | 61 73 20 74 68 65 79 20 |nctions |as they |
|00001a50| 61 72 65 20 63 6f 6d 70 | 69 6c 65 64 20 61 6e 64 |are comp|iled and|
|00001a60| 20 64 6f 6e 27 74 20 70 | 72 69 6e 74 0d 20 20 20 | don't p|rint. |
|00001a70| 74 69 6d 65 73 20 74 61 | 6b 65 6e 20 62 79 20 74 |times ta|ken by t|
|00001a80| 68 65 20 76 61 72 69 6f | 75 73 20 70 61 73 73 65 |he vario|us passe|
|00001a90| 73 2e 20 20 2d 71 75 69 | 65 74 2e 20 20 2a 2f 0d |s. -qui|et. */.|
|00001aa0| 0d 69 6e 74 20 71 75 69 | 65 74 5f 66 6c 61 67 20 |.int qui|et_flag |
|00001ab0| 3d 20 30 3b 0d 0d 2f 2a | 20 44 6f 6e 27 74 20 70 |= 0;../*| Don't p|
|00001ac0| 72 69 6e 74 20 77 61 72 | 6e 69 6e 67 20 6d 65 73 |rint war|ning mes|
|00001ad0| 73 61 67 65 73 2e 20 20 | 2d 77 2e 20 20 2a 2f 0d |sages. |-w. */.|
|00001ae0| 0d 69 6e 74 20 69 6e 68 | 69 62 69 74 5f 77 61 72 |.int inh|ibit_war|
|00001af0| 6e 69 6e 67 73 20 3d 20 | 30 3b 0d 0d 2f 2a 20 44 |nings = |0;../* D|
|00001b00| 6f 20 70 72 69 6e 74 20 | 65 78 74 72 61 20 77 61 |o print |extra wa|
|00001b10| 72 6e 69 6e 67 73 20 28 | 73 75 63 68 20 61 73 20 |rnings (|such as |
|00001b20| 66 6f 72 20 75 6e 69 6e | 69 74 69 61 6c 69 7a 65 |for unin|itialize|
|00001b30| 64 20 76 61 72 69 61 62 | 6c 65 73 29 2e 20 20 2d |d variab|les). -|
|00001b40| 57 2e 20 20 2a 2f 0d 0d | 69 6e 74 20 65 78 74 72 |W. */..|int extr|
|00001b50| 61 5f 77 61 72 6e 69 6e | 67 73 20 3d 20 30 3b 0d |a_warnin|gs = 0;.|
|00001b60| 0d 2f 2a 20 4e 6f 6e 7a | 65 72 6f 20 74 6f 20 77 |./* Nonz|ero to w|
|00001b70| 61 72 6e 20 61 62 6f 75 | 74 20 75 6e 75 73 65 64 |arn abou|t unused|
|00001b80| 20 6c 6f 63 61 6c 20 76 | 61 72 69 61 62 6c 65 73 | local v|ariables|
|00001b90| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 77 61 72 6e 5f |. */..i|nt warn_|
|00001ba0| 75 6e 75 73 65 64 3b 0d | 0d 2f 2a 20 4e 6f 6e 7a |unused;.|./* Nonz|
|00001bb0| 65 72 6f 20 6d 65 61 6e | 73 20 77 61 72 6e 20 61 |ero mean|s warn a|
|00001bc0| 62 6f 75 74 20 61 6c 6c | 20 64 65 63 6c 61 72 61 |bout all| declara|
|00001bd0| 74 69 6f 6e 73 20 77 68 | 69 63 68 20 73 68 61 64 |tions wh|ich shad|
|00001be0| 6f 77 20 6f 74 68 65 72 | 73 2e 20 20 20 2a 2f 0d |ow other|s. */.|
|00001bf0| 0d 69 6e 74 20 77 61 72 | 6e 5f 73 68 61 64 6f 77 |.int war|n_shadow|
|00001c00| 3b 0d 0d 2f 2a 20 57 61 | 72 6e 20 69 66 20 61 20 |;../* Wa|rn if a |
|00001c10| 73 77 69 74 63 68 20 6f | 6e 20 61 6e 20 65 6e 75 |switch o|n an enu|
|00001c20| 6d 20 66 61 69 6c 73 20 | 74 6f 20 68 61 76 65 20 |m fails |to have |
|00001c30| 61 20 63 61 73 65 20 66 | 6f 72 20 65 76 65 72 79 |a case f|or every|
|00001c40| 20 65 6e 75 6d 20 76 61 | 6c 75 65 2e 20 20 2a 2f | enum va|lue. */|
|00001c50| 0d 0d 69 6e 74 20 77 61 | 72 6e 5f 73 77 69 74 63 |..int wa|rn_switc|
|00001c60| 68 3b 0d 0d 2f 2a 20 4e | 6f 6e 7a 65 72 6f 20 6d |h;../* N|onzero m|
|00001c70| 65 61 6e 73 20 77 61 72 | 6e 20 61 62 6f 75 74 20 |eans war|n about |
|00001c80| 61 6e 79 20 69 64 65 6e | 74 69 66 69 65 72 73 20 |any iden|tifiers |
|00001c90| 74 68 61 74 20 6d 61 74 | 63 68 20 69 6e 20 74 68 |that mat|ch in th|
|00001ca0| 65 20 66 69 72 73 74 20 | 4e 0d 20 20 20 63 68 61 |e first |N. cha|
|00001cb0| 72 61 63 74 65 72 73 2e | 20 20 54 68 65 20 76 61 |racters.| The va|
|00001cc0| 6c 75 65 20 4e 20 69 73 | 20 69 6e 20 60 69 64 5f |lue N is| in `id_|
|00001cd0| 63 6c 61 73 68 5f 6c 65 | 6e 27 2e 20 20 2a 2f 0d |clash_le|n'. */.|
|00001ce0| 0d 69 6e 74 20 77 61 72 | 6e 5f 69 64 5f 63 6c 61 |.int war|n_id_cla|
|00001cf0| 73 68 3b 0d 69 6e 74 20 | 69 64 5f 63 6c 61 73 68 |sh;.int |id_clash|
|00001d00| 5f 6c 65 6e 3b 0d 0d 2f | 2a 20 4e 75 6d 62 65 72 |_len;../|* Number|
|00001d10| 20 6f 66 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 | of erro|r messag|
|00001d20| 65 73 20 61 6e 64 20 77 | 61 72 6e 69 6e 67 20 6d |es and w|arning m|
|00001d30| 65 73 73 61 67 65 73 20 | 73 6f 20 66 61 72 2e 20 |essages |so far. |
|00001d40| 20 2a 2f 0d 0d 69 6e 74 | 20 65 72 72 6f 72 63 6f | */..int| errorco|
|00001d50| 75 6e 74 20 3d 20 30 3b | 0d 69 6e 74 20 77 61 72 |unt = 0;|.int war|
|00001d60| 6e 69 6e 67 63 6f 75 6e | 74 20 3d 20 30 3b 0d 69 |ningcoun|t = 0;.i|
|00001d70| 6e 74 20 73 6f 72 72 79 | 63 6f 75 6e 74 20 3d 20 |nt sorry|count = |
|00001d80| 30 3b 0d 0d 2f 2a 20 4e | 61 6d 65 20 6f 66 20 70 |0;../* N|ame of p|
|00001d90| 72 6f 67 72 61 6d 20 69 | 6e 76 6f 6b 65 64 2c 20 |rogram i|nvoked, |
|00001da0| 73 61 6e 73 20 64 69 72 | 65 63 74 6f 72 69 65 73 |sans dir|ectories|
|00001db0| 2e 20 20 2a 2f 0d 0d 63 | 68 61 72 20 2a 70 72 6f |. */..c|har *pro|
|00001dc0| 67 6e 61 6d 65 3b 0d 0d | 2f 2a 20 4e 6f 6e 7a 65 |gname;..|/* Nonze|
|00001dd0| 72 6f 20 69 66 20 67 65 | 6e 65 72 61 74 69 6e 67 |ro if ge|nerating|
|00001de0| 20 63 6f 64 65 20 74 6f | 20 64 6f 20 70 72 6f 66 | code to| do prof|
|00001df0| 69 6c 69 6e 67 2e 20 20 | 2a 2f 0d 0d 69 6e 74 20 |iling. |*/..int |
|00001e00| 70 72 6f 66 69 6c 65 5f | 66 6c 61 67 20 3d 20 30 |profile_|flag = 0|
|00001e10| 3b 0d 0d 2f 2a 20 4e 6f | 6e 7a 65 72 6f 20 69 66 |;../* No|nzero if|
|00001e20| 20 67 65 6e 65 72 61 74 | 69 6e 67 20 63 6f 64 65 | generat|ing code|
|00001e30| 20 74 6f 20 64 6f 20 70 | 72 6f 66 69 6c 69 6e 67 | to do p|rofiling|
|00001e40| 20 6f 6e 20 61 20 6c 69 | 6e 65 2d 62 79 2d 6c 69 | on a li|ne-by-li|
|00001e50| 6e 65 20 62 61 73 69 73 | 2e 20 20 2a 2f 0d 0d 69 |ne basis|. */..i|
|00001e60| 6e 74 20 70 72 6f 66 69 | 6c 65 5f 62 6c 6f 63 6b |nt profi|le_block|
|00001e70| 5f 66 6c 61 67 3b 0d 0d | 2f 2a 20 4e 6f 6e 7a 65 |_flag;..|/* Nonze|
|00001e80| 72 6f 20 66 6f 72 20 2d | 70 65 64 61 6e 74 69 63 |ro for -|pedantic|
|00001e90| 20 73 77 69 74 63 68 3a | 20 77 61 72 6e 20 61 62 | switch:| warn ab|
|00001ea0| 6f 75 74 20 61 6e 79 74 | 68 69 6e 67 0d 20 20 20 |out anyt|hing. |
|00001eb0| 74 68 61 74 20 73 74 61 | 6e 64 61 72 64 20 73 70 |that sta|ndard sp|
|00001ec0| 65 63 20 66 6f 72 62 69 | 64 73 2e 20 20 2a 2f 0d |ec forbi|ds. */.|
|00001ed0| 0d 69 6e 74 20 70 65 64 | 61 6e 74 69 63 20 3d 20 |.int ped|antic = |
|00001ee0| 30 3b 0d 0d 2f 2a 20 4e | 6f 6e 7a 65 72 6f 20 66 |0;../* N|onzero f|
|00001ef0| 6f 72 20 2d 66 69 6e 6c | 69 6e 65 2d 66 75 6e 63 |or -finl|ine-func|
|00001f00| 74 69 6f 6e 73 3a 20 6f | 6b 20 74 6f 20 69 6e 6c |tions: o|k to inl|
|00001f10| 69 6e 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |ine func|tions th|
|00001f20| 61 74 20 6c 6f 6f 6b 20 | 6c 69 6b 65 0d 20 20 20 |at look |like. |
|00001f30| 67 6f 6f 64 20 69 6e 6c | 69 6e 65 20 63 61 6e 64 |good inl|ine cand|
|00001f40| 69 64 61 74 65 73 2e 20 | 20 2a 2f 0d 0d 69 6e 74 |idates. | */..int|
|00001f50| 20 66 6c 61 67 5f 69 6e | 6c 69 6e 65 5f 66 75 6e | flag_in|line_fun|
|00001f60| 63 74 69 6f 6e 73 3b 0d | 0d 2f 2a 20 4e 6f 6e 7a |ctions;.|./* Nonz|
|00001f70| 65 72 6f 20 66 6f 72 20 | 2d 66 6b 65 65 70 2d 69 |ero for |-fkeep-i|
|00001f80| 6e 6c 69 6e 65 2d 66 75 | 6e 63 74 69 6f 6e 73 3a |nline-fu|nctions:|
|00001f90| 20 65 76 65 6e 20 69 66 | 20 77 65 20 6d 61 6b 65 | even if| we make|
|00001fa0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 0d 20 20 20 67 | a funct|ion. g|
|00001fb0| 6f 20 69 6e 6c 69 6e 65 | 20 65 76 65 72 79 77 68 |o inline| everywh|
|00001fc0| 65 72 65 2c 20 6b 65 65 | 70 20 69 74 73 20 64 65 |ere, kee|p its de|
|00001fd0| 66 69 6e 74 69 6f 6e 20 | 61 72 6f 75 6e 64 20 66 |fintion |around f|
|00001fe0| 6f 72 20 64 65 62 75 67 | 67 69 6e 67 0d 20 20 20 |or debug|ging. |
|00001ff0| 70 75 72 70 6f 73 65 73 | 2e 20 20 2a 2f 0d 0d 69 |purposes|. */..i|
|00002000| 6e 74 20 66 6c 61 67 5f | 6b 65 65 70 5f 69 6e 6c |nt flag_|keep_inl|
|00002010| 69 6e 65 5f 66 75 6e 63 | 74 69 6f 6e 73 3b 0d 0d |ine_func|tions;..|
|00002020| 2f 2a 20 4e 6f 6e 7a 65 | 72 6f 20 6d 65 61 6e 73 |/* Nonze|ro means|
|00002030| 20 6d 61 6b 65 20 74 68 | 65 20 74 65 78 74 20 73 | make th|e text s|
|00002040| 68 61 72 65 64 20 69 66 | 20 73 75 70 70 6f 72 74 |hared if| support|
|00002050| 65 64 2e 20 20 2a 2f 0d | 0d 69 6e 74 20 66 6c 61 |ed. */.|.int fla|
|00002060| 67 5f 73 68 61 72 65 64 | 5f 64 61 74 61 3b 0d 0d |g_shared|_data;..|
|00002070| 2f 2a 20 4e 6f 6e 7a 65 | 72 6f 20 6d 65 61 6e 73 |/* Nonze|ro means|
|00002080| 20 73 63 68 65 64 75 6c | 65 20 69 6e 74 6f 20 64 | schedul|e into d|
|00002090| 65 6c 61 79 65 64 20 62 | 72 61 6e 63 68 20 73 6c |elayed b|ranch sl|
|000020a0| 6f 74 73 20 69 66 20 73 | 75 70 70 6f 72 74 65 64 |ots if s|upported|
|000020b0| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 20 66 6c 61 67 5f |. */..i|nt flag_|
|000020c0| 64 65 6c 61 79 65 64 5f | 62 72 61 6e 63 68 3b 0d |delayed_|branch;.|
|000020d0| 0d 2f 2a 20 43 6f 70 79 | 20 6f 66 20 61 72 67 75 |./* Copy| of argu|
|000020e0| 6d 65 6e 74 73 20 74 6f | 20 6d 61 69 6e 2e 20 20 |ments to| main. |
|000020f0| 2a 2f 0d 69 6e 74 20 73 | 61 76 65 5f 61 72 67 63 |*/.int s|ave_argc|
|00002100| 3b 0d 63 68 61 72 20 2a | 2a 73 61 76 65 5f 61 72 |;.char *|*save_ar|
|00002110| 67 76 3b 0d 0d 2f 2a 20 | 4e 61 6d 65 20 66 6f 72 |gv;../* |Name for|
|00002120| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 20 6f 66 20 | output |file of |
|00002130| 61 73 73 65 6d 62 6c 79 | 20 63 6f 64 65 2c 20 73 |assembly| code, s|
|00002140| 70 65 63 69 66 69 65 64 | 20 77 69 74 68 20 2d 6f |pecified| with -o|
|00002150| 2e 20 20 2a 2f 0d 0d 63 | 68 61 72 20 2a 61 73 6d |. */..c|har *asm|
|00002160| 5f 66 69 6c 65 5f 6e 61 | 6d 65 3b 0d 0d 2f 2a 20 |_file_na|me;../* |
|00002170| 4e 61 6d 65 20 66 6f 72 | 20 6f 75 74 70 75 74 20 |Name for| output |
|00002180| 66 69 6c 65 20 6f 66 20 | 47 44 42 20 73 79 6d 62 |file of |GDB symb|
|00002190| 6f 6c 20 73 65 67 6d 65 | 6e 74 2c 20 73 70 65 63 |ol segme|nt, spec|
|000021a0| 69 66 69 65 64 20 77 69 | 74 68 20 2d 73 79 6d 6f |ified wi|th -symo|
|000021b0| 75 74 2e 20 20 2a 2f 0d | 0d 63 68 61 72 20 2a 73 |ut. */.|.char *s|
|000021c0| 79 6d 5f 66 69 6c 65 5f | 6e 61 6d 65 3b 0d 0d 23 |ym_file_|name;..#|
|000021d0| 69 66 64 65 66 20 41 50 | 50 4c 45 5f 43 0d 2f 2a |ifdef AP|PLE_C./*|
|000021e0| 20 53 65 67 6d 65 6e 74 | 20 6e 61 6d 65 20 66 6f | Segment| name fo|
|000021f0| 72 20 4d 61 63 69 6e 74 | 6f 73 68 2e 20 2a 2f 0d |r Macint|osh. */.|
|00002200| 0d 63 68 61 72 20 2a 73 | 65 67 6d 65 6e 74 5f 6e |.char *s|egment_n|
|00002210| 61 6d 65 20 3d 20 22 4d | 61 69 6e 22 3b 0d 0d 2f |ame = "M|ain";../|
|00002220| 2a 20 46 6c 61 67 20 69 | 6e 64 69 63 61 74 69 6e |* Flag i|ndicatin|
|00002230| 67 20 77 68 65 74 68 65 | 72 20 74 72 61 63 69 6e |g whethe|r tracin|
|00002240| 67 20 69 73 20 74 6f 20 | 68 61 70 70 65 6e 2e 20 |g is to |happen. |
|00002250| 2a 2f 0d 0d 69 6e 74 20 | 67 65 6e 65 72 61 74 65 |*/..int |generate|
|00002260| 5f 74 72 61 63 65 5f 63 | 61 6c 6c 73 20 3d 20 30 |_trace_c|alls = 0|
|00002270| 3b 0d 0d 2f 2a 20 46 6c | 61 67 20 69 6e 64 69 63 |;../* Fl|ag indic|
|00002280| 61 74 69 6e 67 20 77 68 | 65 74 68 65 72 20 23 70 |ating wh|ether #p|
|00002290| 72 61 67 6d 61 20 74 72 | 61 63 65 20 61 66 66 65 |ragma tr|ace affe|
|000022a0| 63 74 73 20 74 72 61 63 | 69 6e 67 2e 20 2a 2f 0d |cts trac|ing. */.|
|000022b0| 0d 69 6e 74 20 69 67 6e | 6f 72 65 5f 74 72 61 63 |.int ign|ore_trac|
|000022c0| 65 5f 70 72 61 67 6d 61 | 73 20 3d 20 30 3b 0d 23 |e_pragma|s = 0;.#|
|000022d0| 65 6e 64 69 66 20 2f 2a | 20 41 50 50 4c 45 5f 43 |endif /*| APPLE_C|
|000022e0| 20 2a 2f 0d 0d 23 69 66 | 64 65 66 20 4d 50 57 0d | */..#if|def MPW.|
|000022f0| 23 69 66 64 65 66 20 50 | 45 52 46 4f 52 4d 41 4e |#ifdef P|ERFORMAN|
|00002300| 43 45 0d 54 50 32 50 65 | 72 66 47 6c 6f 62 61 6c |CE.TP2Pe|rfGlobal|
|00002310| 73 20 54 68 65 50 47 6c | 6f 62 61 6c 73 3b 0d 23 |s ThePGl|obals;.#|
|00002320| 65 6e 64 69 66 20 2f 2a | 20 50 45 52 46 4f 52 4d |endif /*| PERFORM|
|00002330| 41 4e 43 45 20 2a 2f 0d | 23 65 6e 64 69 66 20 2f |ANCE */.|#endif /|
|00002340| 2a 20 4d 50 57 20 2a 2f | 0d 0d 2f 2a 20 54 61 62 |* MPW */|../* Tab|
|00002350| 6c 65 20 6f 66 20 6c 61 | 6e 67 75 61 67 65 2d 69 |le of la|nguage-i|
|00002360| 6e 64 65 70 65 6e 64 65 | 6e 74 20 2d 66 20 6f 70 |ndepende|nt -f op|
|00002370| 74 69 6f 6e 73 2e 0d 20 | 20 20 53 54 52 49 4e 47 |tions.. | STRING|
|00002380| 20 69 73 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 6e | is the |option n|
|00002390| 61 6d 65 2e 20 20 56 41 | 52 49 41 42 4c 45 20 69 |ame. VA|RIABLE i|
|000023a0| 73 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |s the ad|dress of|
|000023b0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 2e 0d 20 | the var|iable.. |
|000023c0| 20 20 4f 4e 5f 56 41 4c | 55 45 20 69 73 20 74 68 | ON_VAL|UE is th|
|000023d0| 65 20 76 61 6c 75 65 20 | 74 6f 20 73 74 6f 72 65 |e value |to store|
|000023e0| 20 69 6e 20 56 41 52 49 | 41 42 4c 45 0d 20 20 20 | in VARI|ABLE. |
|000023f0| 20 69 66 20 60 2d 66 53 | 54 52 49 4e 47 27 20 69 | if `-fS|TRING' i|
|00002400| 73 20 73 65 65 6e 20 61 | 73 20 61 6e 20 6f 70 74 |s seen a|s an opt|
|00002410| 69 6f 6e 2e 0d 20 20 20 | 28 49 66 20 60 2d 66 6e |ion.. |(If `-fn|
|00002420| 6f 2d 53 54 52 49 4e 47 | 27 20 69 73 20 73 65 65 |o-STRING|' is see|
|00002430| 6e 20 61 73 20 61 6e 20 | 6f 70 74 69 6f 6e 2c 20 |n as an |option, |
|00002440| 74 68 65 20 6f 70 70 6f | 73 69 74 65 20 76 61 6c |the oppo|site val|
|00002450| 75 65 20 69 73 20 73 74 | 6f 72 65 64 2e 29 20 20 |ue is st|ored.) |
|00002460| 2a 2f 0d 0d 73 74 72 75 | 63 74 20 7b 20 63 68 61 |*/..stru|ct { cha|
|00002470| 72 20 2a 73 74 72 69 6e | 67 3b 20 69 6e 74 20 2a |r *strin|g; int *|
|00002480| 76 61 72 69 61 62 6c 65 | 3b 20 69 6e 74 20 6f 6e |variable|; int on|
|00002490| 5f 76 61 6c 75 65 3b 7d | 20 66 5f 6f 70 74 69 6f |_value;}| f_optio|
|000024a0| 6e 73 5b 5d 20 3d 0d 7b | 0d 20 20 7b 22 66 6c 6f |ns[] =.{|. {"flo|
|000024b0| 61 74 2d 73 74 6f 72 65 | 22 2c 20 26 66 6c 61 67 |at-store|", &flag|
|000024c0| 5f 66 6c 6f 61 74 5f 73 | 74 6f 72 65 2c 20 31 7d |_float_s|tore, 1}|
|000024d0| 2c 0d 20 20 7b 22 76 6f | 6c 61 74 69 6c 65 22 2c |,. {"vo|latile",|
|000024e0| 20 26 66 6c 61 67 5f 76 | 6f 6c 61 74 69 6c 65 2c | &flag_v|olatile,|
|000024f0| 20 31 7d 2c 0d 20 20 7b | 22 64 65 66 65 72 2d 70 | 1},. {|"defer-p|
|00002500| 6f 70 22 2c 20 26 66 6c | 61 67 5f 64 65 66 65 72 |op", &fl|ag_defer|
|00002510| 5f 70 6f 70 2c 20 31 7d | 2c 0d 20 20 7b 22 6f 6d |_pop, 1}|,. {"om|
|00002520| 69 74 2d 66 72 61 6d 65 | 2d 70 6f 69 6e 74 65 72 |it-frame|-pointer|
|00002530| 22 2c 20 26 66 6c 61 67 | 5f 6f 6d 69 74 5f 66 72 |", &flag|_omit_fr|
|00002540| 61 6d 65 5f 70 6f 69 6e | 74 65 72 2c 20 31 7d 2c |ame_poin|ter, 1},|
|00002550| 0d 20 20 7b 22 73 74 72 | 65 6e 67 74 68 2d 72 65 |. {"str|ength-re|
|00002560| 64 75 63 65 22 2c 20 26 | 66 6c 61 67 5f 73 74 72 |duce", &|flag_str|
|00002570| 65 6e 67 74 68 5f 72 65 | 64 75 63 65 2c 20 31 7d |ength_re|duce, 1}|
|00002580| 2c 0d 20 20 7b 22 77 72 | 69 74 61 62 6c 65 2d 73 |,. {"wr|itable-s|
|00002590| 74 72 69 6e 67 73 22 2c | 20 26 66 6c 61 67 5f 77 |trings",| &flag_w|
|000025a0| 72 69 74 61 62 6c 65 5f | 73 74 72 69 6e 67 73 2c |ritable_|strings,|
|000025b0| 20 31 7d 2c 0d 20 20 7b | 22 70 65 65 70 68 6f 6c | 1},. {|"peephol|
|000025c0| 65 22 2c 20 26 66 6c 61 | 67 5f 6e 6f 5f 70 65 65 |e", &fla|g_no_pee|
|000025d0| 70 68 6f 6c 65 2c 20 30 | 7d 2c 0d 20 20 7b 22 66 |phole, 0|},. {"f|
|000025e0| 6f 72 63 65 2d 6d 65 6d | 22 2c 20 26 66 6c 61 67 |orce-mem|", &flag|
|000025f0| 5f 66 6f 72 63 65 5f 6d | 65 6d 2c 20 31 7d 2c 0d |_force_m|em, 1},.|
|00002600| 20 20 7b 22 66 6f 72 63 | 65 2d 61 64 64 72 22 2c | {"forc|e-addr",|
|00002610| 20 26 66 6c 61 67 5f 66 | 6f 72 63 65 5f 61 64 64 | &flag_f|orce_add|
|00002620| 72 2c 20 31 7d 2c 0d 20 | 20 7b 22 63 6f 6d 62 69 |r, 1},. | {"combi|
|00002630| 6e 65 2d 72 65 67 73 22 | 2c 20 26 66 6c 61 67 5f |ne-regs"|, &flag_|
|00002640| 63 6f 6d 62 69 6e 65 5f | 72 65 67 73 2c 20 31 7d |combine_|regs, 1}|
|00002650| 2c 0d 20 20 7b 22 66 75 | 6e 63 74 69 6f 6e 2d 63 |,. {"fu|nction-c|
|00002660| 73 65 22 2c 20 26 66 6c | 61 67 5f 6e 6f 5f 66 75 |se", &fl|ag_no_fu|
|00002670| 6e 63 74 69 6f 6e 5f 63 | 73 65 2c 20 30 7d 2c 0d |nction_c|se, 0},.|
|00002680| 20 20 7b 22 69 6e 6c 69 | 6e 65 2d 66 75 6e 63 74 | {"inli|ne-funct|
|00002690| 69 6f 6e 73 22 2c 20 26 | 66 6c 61 67 5f 69 6e 6c |ions", &|flag_inl|
|000026a0| 69 6e 65 5f 66 75 6e 63 | 74 69 6f 6e 73 2c 20 31 |ine_func|tions, 1|
|000026b0| 7d 2c 0d 20 20 7b 22 6b | 65 65 70 2d 69 6e 6c 69 |},. {"k|eep-inli|
|000026c0| 6e 65 2d 66 75 6e 63 74 | 69 6f 6e 73 22 2c 20 26 |ne-funct|ions", &|
|000026d0| 66 6c 61 67 5f 6b 65 65 | 70 5f 69 6e 6c 69 6e 65 |flag_kee|p_inline|
|000026e0| 5f 66 75 6e 63 74 69 6f | 6e 73 2c 20 31 7d 2c 0d |_functio|ns, 1},.|
|000026f0| 20 20 7b 22 73 79 6e 74 | 61 78 2d 6f 6e 6c 79 22 | {"synt|ax-only"|
|00002700| 2c 20 26 66 6c 61 67 5f | 73 79 6e 74 61 78 5f 6f |, &flag_|syntax_o|
|00002710| 6e 6c 79 2c 20 31 7d 2c | 0d 20 20 7b 22 73 68 61 |nly, 1},|. {"sha|
|00002720| 72 65 64 2d 64 61 74 61 | 22 2c 20 26 66 6c 61 67 |red-data|", &flag|
|00002730| 5f 73 68 61 72 65 64 5f | 64 61 74 61 2c 20 31 7d |_shared_|data, 1}|
|00002740| 2c 0d 20 20 7b 22 63 61 | 6c 6c 65 72 2d 73 61 76 |,. {"ca|ller-sav|
|00002750| 65 73 22 2c 20 26 66 6c | 61 67 5f 63 61 6c 6c 65 |es", &fl|ag_calle|
|00002760| 72 5f 73 61 76 65 73 2c | 20 31 7d 2c 0d 20 20 7b |r_saves,| 1},. {|
|00002770| 22 70 63 63 2d 73 74 72 | 75 63 74 2d 72 65 74 75 |"pcc-str|uct-retu|
|00002780| 72 6e 22 2c 20 26 66 6c | 61 67 5f 70 63 63 5f 73 |rn", &fl|ag_pcc_s|
|00002790| 74 72 75 63 74 5f 72 65 | 74 75 72 6e 2c 20 31 7d |truct_re|turn, 1}|
|000027a0| 2c 0d 20 20 7b 22 64 65 | 6c 61 79 65 64 2d 62 72 |,. {"de|layed-br|
|000027b0| 61 6e 63 68 22 2c 20 26 | 66 6c 61 67 5f 64 65 6c |anch", &|flag_del|
|000027c0| 61 79 65 64 5f 62 72 61 | 6e 63 68 2c 20 31 7d 0d |ayed_bra|nch, 1}.|
|000027d0| 7d 3b 0d 0d 2f 2a 20 4f | 75 74 70 75 74 20 66 69 |};../* O|utput fi|
|000027e0| 6c 65 73 20 66 6f 72 20 | 61 73 73 65 6d 62 6c 65 |les for |assemble|
|000027f0| 72 20 63 6f 64 65 20 28 | 72 65 61 6c 20 63 6f 6d |r code (|real com|
|00002800| 70 69 6c 65 72 20 6f 75 | 74 70 75 74 29 0d 20 20 |piler ou|tput). |
|00002810| 20 61 6e 64 20 64 65 62 | 75 67 67 69 6e 67 20 64 | and deb|ugging d|
|00002820| 75 6d 70 73 2e 20 20 2a | 2f 0d 0d 46 49 4c 45 20 |umps. *|/..FILE |
|00002830| 2a 61 73 6d 5f 6f 75 74 | 5f 66 69 6c 65 3b 0d 46 |*asm_out|_file;.F|
|00002840| 49 4c 45 20 2a 72 74 6c | 5f 64 75 6d 70 5f 66 69 |ILE *rtl|_dump_fi|
|00002850| 6c 65 3b 0d 46 49 4c 45 | 20 2a 6a 75 6d 70 5f 6f |le;.FILE| *jump_o|
|00002860| 70 74 5f 64 75 6d 70 5f | 66 69 6c 65 3b 0d 46 49 |pt_dump_|file;.FI|
|00002870| 4c 45 20 2a 63 73 65 5f | 64 75 6d 70 5f 66 69 6c |LE *cse_|dump_fil|
|00002880| 65 3b 0d 46 49 4c 45 20 | 2a 6c 6f 6f 70 5f 64 75 |e;.FILE |*loop_du|
|00002890| 6d 70 5f 66 69 6c 65 3b | 0d 46 49 4c 45 20 2a 66 |mp_file;|.FILE *f|
|000028a0| 6c 6f 77 5f 64 75 6d 70 | 5f 66 69 6c 65 3b 0d 46 |low_dump|_file;.F|
|000028b0| 49 4c 45 20 2a 63 6f 6d | 62 69 6e 65 5f 64 75 6d |ILE *com|bine_dum|
|000028c0| 70 5f 66 69 6c 65 3b 0d | 46 49 4c 45 20 2a 6c 6f |p_file;.|FILE *lo|
|000028d0| 63 61 6c 5f 72 65 67 5f | 64 75 6d 70 5f 66 69 6c |cal_reg_|dump_fil|
|000028e0| 65 3b 0d 46 49 4c 45 20 | 2a 67 6c 6f 62 61 6c 5f |e;.FILE |*global_|
|000028f0| 72 65 67 5f 64 75 6d 70 | 5f 66 69 6c 65 3b 0d 46 |reg_dump|_file;.F|
|00002900| 49 4c 45 20 2a 6a 75 6d | 70 32 5f 6f 70 74 5f 64 |ILE *jum|p2_opt_d|
|00002910| 75 6d 70 5f 66 69 6c 65 | 3b 0d 46 49 4c 45 20 2a |ump_file|;.FILE *|
|00002920| 64 62 72 5f 73 63 68 65 | 64 5f 64 75 6d 70 5f 66 |dbr_sche|d_dump_f|
|00002930| 69 6c 65 3b 0d 0d 2f 2a | 20 54 69 6d 65 20 61 63 |ile;../*| Time ac|
|00002940| 63 75 6d 75 6c 61 74 6f | 72 73 2c 20 74 6f 20 63 |cumulato|rs, to c|
|00002950| 6f 75 6e 74 20 74 68 65 | 20 74 6f 74 61 6c 20 74 |ount the| total t|
|00002960| 69 6d 65 20 73 70 65 6e | 74 20 69 6e 20 76 61 72 |ime spen|t in var|
|00002970| 69 6f 75 73 20 70 61 73 | 73 65 73 2e 20 20 2a 2f |ious pas|ses. */|
|00002980| 0d 0d 69 6e 74 20 70 61 | 72 73 65 5f 74 69 6d 65 |..int pa|rse_time|
|00002990| 3b 0d 69 6e 74 20 76 61 | 72 63 6f 6e 73 74 5f 74 |;.int va|rconst_t|
|000029a0| 69 6d 65 3b 0d 69 6e 74 | 20 69 6e 74 65 67 72 61 |ime;.int| integra|
|000029b0| 74 69 6f 6e 5f 74 69 6d | 65 3b 0d 69 6e 74 20 6a |tion_tim|e;.int j|
|000029c0| 75 6d 70 5f 74 69 6d 65 | 3b 0d 69 6e 74 20 63 73 |ump_time|;.int cs|
|000029d0| 65 5f 74 69 6d 65 3b 0d | 69 6e 74 20 6c 6f 6f 70 |e_time;.|int loop|
|000029e0| 5f 74 69 6d 65 3b 0d 69 | 6e 74 20 66 6c 6f 77 5f |_time;.i|nt flow_|
|000029f0| 74 69 6d 65 3b 0d 69 6e | 74 20 63 6f 6d 62 69 6e |time;.in|t combin|
|00002a00| 65 5f 74 69 6d 65 3b 0d | 69 6e 74 20 6c 6f 63 61 |e_time;.|int loca|
|00002a10| 6c 5f 61 6c 6c 6f 63 5f | 74 69 6d 65 3b 0d 69 6e |l_alloc_|time;.in|
|00002a20| 74 20 67 6c 6f 62 61 6c | 5f 61 6c 6c 6f 63 5f 74 |t global|_alloc_t|
|00002a30| 69 6d 65 3b 0d 69 6e 74 | 20 64 62 72 5f 73 63 68 |ime;.int| dbr_sch|
|00002a40| 65 64 5f 74 69 6d 65 3b | 0d 69 6e 74 20 66 69 6e |ed_time;|.int fin|
|00002a50| 61 6c 5f 74 69 6d 65 3b | 0d 69 6e 74 20 73 79 6d |al_time;|.int sym|
|00002a60| 6f 75 74 5f 74 69 6d 65 | 3b 0d 69 6e 74 20 64 75 |out_time|;.int du|
|00002a70| 6d 70 5f 74 69 6d 65 3b | 0d 0c 0d 2f 2a 20 52 65 |mp_time;|.../* Re|
|00002a80| 74 75 72 6e 20 74 69 6d | 65 20 75 73 65 64 20 73 |turn tim|e used s|
|00002a90| 6f 20 66 61 72 2c 20 69 | 6e 20 6d 69 63 72 6f 73 |o far, i|n micros|
|00002aa0| 65 63 6f 6e 64 73 2e 20 | 20 2a 2f 0d 0d 69 6e 74 |econds. | */..int|
|00002ab0| 0d 67 65 74 74 69 6d 65 | 20 28 29 0d 7b 0d 23 69 |.gettime| ().{.#i|
|00002ac0| 66 64 65 66 20 4d 50 57 | 0d 20 20 2f 2a 20 64 6f |fdef MPW|. /* do|
|00002ad0| 6e 27 74 20 6e 65 65 64 | 20 61 20 73 74 72 75 63 |n't need| a struc|
|00002ae0| 74 75 72 65 20 68 65 72 | 65 20 2a 2f 0d 0d 23 65 |ture her|e */..#e|
|00002af0| 6c 73 65 0d 23 69 66 64 | 65 66 20 55 53 47 0d 20 |lse.#ifd|ef USG. |
|00002b00| 20 73 74 72 75 63 74 20 | 74 6d 73 20 74 6d 73 3b | struct |tms tms;|
|00002b10| 0d 23 65 6c 73 65 0d 23 | 69 66 6e 64 65 66 20 56 |.#else.#|ifndef V|
|00002b20| 4d 53 0d 20 20 73 74 72 | 75 63 74 20 72 75 73 61 |MS. str|uct rusa|
|00002b30| 67 65 20 72 75 73 61 67 | 65 3b 0d 23 65 6c 73 65 |ge rusag|e;.#else|
|00002b40| 20 2f 2a 20 56 4d 53 20 | 2a 2f 0d 20 20 73 74 72 | /* VMS |*/. str|
|00002b50| 75 63 74 0d 20 20 20 20 | 7b 0d 20 20 20 20 20 20 |uct. |{. |
|00002b60| 69 6e 74 20 70 72 6f 63 | 5f 75 73 65 72 5f 74 69 |int proc|_user_ti|
|00002b70| 6d 65 3b 0d 20 20 20 20 | 20 20 69 6e 74 20 70 72 |me;. | int pr|
|00002b80| 6f 63 5f 73 79 73 74 65 | 6d 5f 74 69 6d 65 3b 0d |oc_syste|m_time;.|
|00002b90| 20 20 20 20 20 20 69 6e | 74 20 63 68 69 6c 64 5f | in|t child_|
|00002ba0| 75 73 65 72 5f 74 69 6d | 65 3b 0d 20 20 20 20 20 |user_tim|e;. |
|00002bb0| 20 69 6e 74 20 63 68 69 | 6c 64 5f 73 79 73 74 65 | int chi|ld_syste|
|00002bc0| 6d 5f 74 69 6d 65 3b 0d | 20 20 20 20 7d 20 76 6d |m_time;.| } vm|
|00002bd0| 73 5f 74 69 6d 65 73 3b | 0d 23 65 6e 64 69 66 0d |s_times;|.#endif.|
|00002be0| 23 65 6e 64 69 66 0d 23 | 65 6e 64 69 66 20 2f 2a |#endif.#|endif /*|
|00002bf0| 20 4d 50 57 20 2a 2f 0d | 0d 20 20 69 66 20 28 71 | MPW */.|. if (q|
|00002c00| 75 69 65 74 5f 66 6c 61 | 67 29 0d 20 20 20 20 72 |uiet_fla|g). r|
|00002c10| 65 74 75 72 6e 20 30 3b | 0d 0d 23 69 66 64 65 66 |eturn 0;|..#ifdef|
|00002c20| 20 4d 50 57 0d 20 20 2f | 2a 20 4d 50 57 27 73 20 | MPW. /|* MPW's |
|00002c30| 72 65 74 75 72 6e 73 20 | 31 2f 36 30 20 73 65 63 |returns |1/60 sec|
|00002c40| 20 74 69 63 6b 73 2c 20 | 73 6f 20 77 65 20 64 6f | ticks, |so we do|
|00002c50| 20 65 61 73 79 20 63 6f | 6e 76 65 72 73 69 6f 6e | easy co|nversion|
|00002c60| 20 74 6f 20 6d 69 63 72 | 6f 73 65 63 6f 6e 64 73 | to micr|oseconds|
|00002c70| 2e 20 2a 2f 0d 20 20 72 | 65 74 75 72 6e 20 28 63 |. */. r|eturn (c|
|00002c80| 6c 6f 63 6b 28 29 20 2a | 20 28 31 30 30 30 30 30 |lock() *| (100000|
|00002c90| 30 20 2f 20 36 30 29 29 | 3b 0d 23 65 6c 73 65 0d |0 / 60))|;.#else.|
|00002ca0| 23 69 66 64 65 66 20 55 | 53 47 0d 20 20 74 69 6d |#ifdef U|SG. tim|
|00002cb0| 65 73 20 28 26 74 6d 73 | 29 3b 0d 20 20 72 65 74 |es (&tms|);. ret|
|00002cc0| 75 72 6e 20 28 74 6d 73 | 2e 74 6d 73 5f 75 74 69 |urn (tms|.tms_uti|
|00002cd0| 6d 65 20 2b 20 74 6d 73 | 2e 74 6d 73 5f 73 74 69 |me + tms|.tms_sti|
|00002ce0| 6d 65 29 20 2a 20 28 31 | 30 30 30 30 30 30 20 2f |me) * (1|000000 /|
|00002cf0| 20 48 5a 29 3b 0d 23 65 | 6c 73 65 0d 23 69 66 6e | HZ);.#e|lse.#ifn|
|00002d00| 64 65 66 20 56 4d 53 0d | 20 20 67 65 74 72 75 73 |def VMS.| getrus|
|00002d10| 61 67 65 20 28 30 2c 20 | 26 72 75 73 61 67 65 29 |age (0, |&rusage)|
|00002d20| 3b 0d 20 20 72 65 74 75 | 72 6e 20 28 72 75 73 61 |;. retu|rn (rusa|
|00002d30| 67 65 2e 72 75 5f 75 74 | 69 6d 65 2e 74 76 5f 73 |ge.ru_ut|ime.tv_s|
|00002d40| 65 63 20 2a 20 31 30 30 | 30 30 30 30 20 2b 20 72 |ec * 100|0000 + r|
|00002d50| 75 73 61 67 65 2e 72 75 | 5f 75 74 69 6d 65 2e 74 |usage.ru|_utime.t|
|00002d60| 76 5f 75 73 65 63 0d 09 | 20 20 2b 20 72 75 73 61 |v_usec..| + rusa|
|00002d70| 67 65 2e 72 75 5f 73 74 | 69 6d 65 2e 74 76 5f 73 |ge.ru_st|ime.tv_s|
|00002d80| 65 63 20 2a 20 31 30 30 | 30 30 30 30 20 2b 20 72 |ec * 100|0000 + r|
|00002d90| 75 73 61 67 65 2e 72 75 | 5f 73 74 69 6d 65 2e 74 |usage.ru|_stime.t|
|00002da0| 76 5f 75 73 65 63 29 3b | 0d 23 65 6c 73 65 20 2f |v_usec);|.#else /|
|00002db0| 2a 20 56 4d 53 20 2a 2f | 0d 20 20 74 69 6d 65 73 |* VMS */|. times|
|00002dc0| 20 28 26 76 6d 73 5f 74 | 69 6d 65 73 29 3b 0d 20 | (&vms_t|imes);. |
|00002dd0| 20 72 65 74 75 72 6e 20 | 28 76 6d 73 5f 74 69 6d | return |(vms_tim|
|00002de0| 65 73 2e 70 72 6f 63 5f | 75 73 65 72 5f 74 69 6d |es.proc_|user_tim|
|00002df0| 65 20 2b 20 76 6d 73 5f | 74 69 6d 65 73 2e 70 72 |e + vms_|times.pr|
|00002e00| 6f 63 5f 73 79 73 74 65 | 6d 5f 74 69 6d 65 29 20 |oc_syste|m_time) |
|00002e10| 2a 20 31 30 30 30 30 3b | 0d 23 65 6e 64 69 66 0d |* 10000;|.#endif.|
|00002e20| 23 65 6e 64 69 66 0d 23 | 65 6e 64 69 66 20 2f 2a |#endif.#|endif /*|
|00002e30| 20 4d 50 57 20 2a 2f 0d | 7d 0d 0d 23 64 65 66 69 | MPW */.|}..#defi|
|00002e40| 6e 65 20 54 49 4d 45 56 | 41 52 28 56 41 52 2c 20 |ne TIMEV|AR(VAR, |
|00002e50| 42 4f 44 59 29 20 20 20 | 20 5c 0d 64 6f 20 7b 20 |BODY) | \.do { |
|00002e60| 69 6e 74 20 6f 74 69 6d | 65 20 3d 20 67 65 74 74 |int otim|e = gett|
|00002e70| 69 6d 65 20 28 29 3b 20 | 42 4f 44 59 3b 20 56 41 |ime (); |BODY; VA|
|00002e80| 52 20 2b 3d 20 67 65 74 | 74 69 6d 65 20 28 29 20 |R += get|time () |
|00002e90| 2d 20 6f 74 69 6d 65 3b | 20 7d 20 77 68 69 6c 65 |- otime;| } while|
|00002ea0| 20 28 30 29 0d 0d 76 6f | 69 64 0d 70 72 69 6e 74 | (0)..vo|id.print|
|00002eb0| 5f 74 69 6d 65 20 28 73 | 74 72 2c 20 74 6f 74 61 |_time (s|tr, tota|
|00002ec0| 6c 29 0d 20 20 20 20 20 | 63 68 61 72 20 2a 73 74 |l). |char *st|
|00002ed0| 72 3b 0d 20 20 20 20 20 | 69 6e 74 20 74 6f 74 61 |r;. |int tota|
|00002ee0| 6c 3b 0d 7b 0d 20 20 66 | 70 72 69 6e 74 66 20 28 |l;.{. f|printf (|
|00002ef0| 73 74 64 65 72 72 2c 0d | 09 20 20 20 22 74 69 6d |stderr,.|. "tim|
|00002f00| 65 20 69 6e 20 25 73 3a | 20 25 64 2e 25 30 36 64 |e in %s:| %d.%06d|
|00002f10| 5c 6e 22 2c 0d 09 20 20 | 20 73 74 72 2c 20 74 6f |\n",.. | str, to|
|00002f20| 74 61 6c 20 2f 20 31 30 | 30 30 30 30 30 2c 20 74 |tal / 10|00000, t|
|00002f30| 6f 74 61 6c 20 25 20 31 | 30 30 30 30 30 30 29 3b |otal % 1|000000);|
|00002f40| 0d 7d 0d 0d 2f 2a 20 43 | 6f 75 6e 74 20 61 6e 20 |.}../* C|ount an |
|00002f50| 65 72 72 6f 72 20 6f 72 | 20 77 61 72 6e 69 6e 67 |error or| warning|
|00002f60| 2e 20 20 52 65 74 75 72 | 6e 20 31 20 69 66 20 74 |. Retur|n 1 if t|
|00002f70| 68 65 20 6d 65 73 73 61 | 67 65 20 73 68 6f 75 6c |he messa|ge shoul|
|00002f80| 64 20 62 65 20 70 72 69 | 6e 74 65 64 2e 20 20 2a |d be pri|nted. *|
|00002f90| 2f 0d 0d 69 6e 74 0d 63 | 6f 75 6e 74 5f 65 72 72 |/..int.c|ount_err|
|00002fa0| 6f 72 20 28 77 61 72 6e | 69 6e 67 70 29 0d 20 20 |or (warn|ingp). |
|00002fb0| 20 20 20 69 6e 74 20 77 | 61 72 6e 69 6e 67 70 3b | int w|arningp;|
|00002fc0| 0d 7b 0d 20 20 69 66 20 | 28 77 61 72 6e 69 6e 67 |.{. if |(warning|
|00002fd0| 70 20 26 26 20 69 6e 68 | 69 62 69 74 5f 77 61 72 |p && inh|ibit_war|
|00002fe0| 6e 69 6e 67 73 29 0d 20 | 20 20 20 72 65 74 75 72 |nings). | retur|
|00002ff0| 6e 20 30 3b 0d 0d 20 20 | 69 66 20 28 77 61 72 6e |n 0;.. |if (warn|
|00003000| 69 6e 67 70 29 0d 20 20 | 20 20 77 61 72 6e 69 6e |ingp). | warnin|
|00003010| 67 63 6f 75 6e 74 2b 2b | 3b 0d 20 20 65 6c 73 65 |gcount++|;. else|
|00003020| 0d 20 20 20 20 65 72 72 | 6f 72 63 6f 75 6e 74 2b |. err|orcount+|
|00003030| 2b 3b 0d 0d 20 20 72 65 | 74 75 72 6e 20 31 3b 0d |+;.. re|turn 1;.|
|00003040| 7d 0d 0d 2f 2a 20 50 72 | 69 6e 74 20 61 20 66 61 |}../* Pr|int a fa|
|00003050| 74 61 6c 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |tal erro|r messag|
|00003060| 65 2e 20 20 4e 41 4d 45 | 20 69 73 20 74 68 65 20 |e. NAME| is the |
|00003070| 74 65 78 74 2e 0d 20 20 | 20 41 6c 73 6f 20 69 6e |text.. | Also in|
|00003080| 63 6c 75 64 65 20 61 20 | 73 79 73 74 65 6d 20 65 |clude a |system e|
|00003090| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 20 62 61 73 |rror mes|sage bas|
|000030a0| 65 64 20 6f 6e 20 60 65 | 72 72 6e 6f 27 2e 20 20 |ed on `e|rrno'. |
|000030b0| 2a 2f 0d 0d 76 6f 69 64 | 0d 70 66 61 74 61 6c 5f |*/..void|.pfatal_|
|000030c0| 77 69 74 68 5f 6e 61 6d | 65 20 28 6e 61 6d 65 29 |with_nam|e (name)|
|000030d0| 0d 20 20 20 20 20 63 68 | 61 72 20 2a 6e 61 6d 65 |. ch|ar *name|
|000030e0| 3b 0d 7b 0d 20 20 66 70 | 72 69 6e 74 66 20 28 73 |;.{. fp|rintf (s|
|000030f0| 74 64 65 72 72 2c 20 22 | 25 73 3a 20 22 2c 20 70 |tderr, "|%s: ", p|
|00003100| 72 6f 67 6e 61 6d 65 29 | 3b 0d 20 20 70 65 72 72 |rogname)|;. perr|
|00003110| 6f 72 20 28 6e 61 6d 65 | 29 3b 0d 20 20 65 78 69 |or (name|);. exi|
|00003120| 74 20 28 33 35 29 3b 0d | 7d 0d 0d 76 6f 69 64 0d |t (35);.|}..void.|
|00003130| 66 61 74 61 6c 5f 69 6f | 5f 65 72 72 6f 72 20 28 |fatal_io|_error (|
|00003140| 6e 61 6d 65 29 0d 20 20 | 20 20 20 63 68 61 72 20 |name). | char |
|00003150| 2a 6e 61 6d 65 3b 0d 7b | 0d 20 20 66 70 72 69 6e |*name;.{|. fprin|
|00003160| 74 66 20 28 73 74 64 65 | 72 72 2c 20 22 25 73 3a |tf (stde|rr, "%s:|
|00003170| 20 25 73 3a 20 49 2f 4f | 20 65 72 72 6f 72 5c 6e | %s: I/O| error\n|
|00003180| 22 2c 20 70 72 6f 67 6e | 61 6d 65 2c 20 6e 61 6d |", progn|ame, nam|
|00003190| 65 29 3b 0d 20 20 65 78 | 69 74 20 28 33 35 29 3b |e);. ex|it (35);|
|000031a0| 0d 7d 0d 0d 76 6f 69 64 | 0d 66 61 74 61 6c 20 28 |.}..void|.fatal (|
|000031b0| 73 2c 20 76 29 0d 20 20 | 20 20 20 63 68 61 72 20 |s, v). | char |
|000031c0| 2a 73 3b 0d 20 20 20 20 | 20 69 6e 74 20 76 3b 0d |*s;. | int v;.|
|000031d0| 7b 0d 20 20 65 72 72 6f | 72 20 28 73 2c 20 76 29 |{. erro|r (s, v)|
|000031e0| 3b 0d 20 20 65 78 69 74 | 20 28 33 34 29 3b 0d 7d |;. exit| (34);.}|
|000031f0| 0d 0d 2f 2a 20 43 61 6c | 6c 65 64 20 66 72 6f 6d |../* Cal|led from|
|00003200| 20 69 6e 73 6e 2d 65 78 | 74 72 61 63 74 20 74 6f | insn-ex|tract to|
|00003210| 20 67 69 76 65 20 61 20 | 62 65 74 74 65 72 20 65 | give a |better e|
|00003220| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 20 77 68 65 |rror mes|sage whe|
|00003230| 6e 20 77 65 0d 20 20 20 | 64 6f 6e 27 74 20 68 61 |n we. |don't ha|
|00003240| 76 65 20 61 6e 20 69 6e | 73 6e 20 74 6f 20 6d 61 |ve an in|sn to ma|
|00003250| 74 63 68 20 77 68 61 74 | 20 77 65 20 61 72 65 20 |tch what| we are |
|00003260| 6c 6f 6f 6b 69 6e 67 20 | 66 6f 72 2c 20 72 61 74 |looking |for, rat|
|00003270| 68 65 72 0d 20 20 20 74 | 68 61 6e 20 6a 75 73 74 |her. t|han just|
|00003280| 20 63 61 6c 6c 69 6e 67 | 20 61 62 6f 72 74 28 29 | calling| abort()|
|00003290| 2e 20 20 2a 2f 0d 0d 76 | 6f 69 64 0d 66 61 74 61 |. */..v|oid.fata|
|000032a0| 6c 5f 69 6e 73 6e 5f 6e | 6f 74 5f 66 6f 75 6e 64 |l_insn_n|ot_found|
|000032b0| 20 28 69 6e 73 6e 29 0d | 20 20 20 20 20 72 74 78 | (insn).| rtx|
|000032c0| 20 69 6e 73 6e 3b 0d 7b | 0d 20 20 65 72 72 6f 72 | insn;.{|. error|
|000032d0| 20 28 22 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 | ("The f|ollowing|
|000032e0| 20 69 6e 73 6e 20 77 61 | 73 20 6e 6f 74 20 72 65 | insn wa|s not re|
|000032f0| 63 6f 67 6e 69 7a 61 62 | 6c 65 3a 22 2c 20 30 29 |cognizab|le:", 0)|
|00003300| 3b 0d 20 20 64 65 62 75 | 67 5f 72 74 78 20 28 69 |;. debu|g_rtx (i|
|00003310| 6e 73 6e 29 3b 0d 20 20 | 61 62 6f 72 74 20 28 29 |nsn);. |abort ()|
|00003320| 3b 0d 7d 0d 0c 0d 73 74 | 61 74 69 63 20 69 6e 74 |;.}...st|atic int|
|00003330| 20 6e 65 65 64 5f 65 72 | 72 6f 72 5f 6e 65 77 6c | need_er|ror_newl|
|00003340| 69 6e 65 3b 0d 0d 2f 2a | 20 46 75 6e 63 74 69 6f |ine;../*| Functio|
|00003350| 6e 20 6f 66 20 6c 61 73 | 74 20 65 72 72 6f 72 20 |n of las|t error |
|00003360| 6d 65 73 73 61 67 65 3b | 0d 20 20 20 6d 6f 72 65 |message;|. more|
|00003370| 20 67 65 6e 65 72 61 6c | 6c 79 2c 20 66 75 6e 63 | general|ly, func|
|00003380| 74 69 6f 6e 20 73 75 63 | 68 20 74 68 61 74 20 69 |tion suc|h that i|
|00003390| 66 20 6e 65 78 74 20 65 | 72 72 6f 72 20 6d 65 73 |f next e|rror mes|
|000033a0| 73 61 67 65 20 69 73 20 | 69 6e 20 69 74 0d 20 20 |sage is |in it. |
|000033b0| 20 74 68 65 6e 20 77 65 | 20 64 6f 6e 27 74 20 68 | then we| don't h|
|000033c0| 61 76 65 20 74 6f 20 6d | 65 6e 74 69 6f 6e 20 74 |ave to m|ention t|
|000033d0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 6e 61 6d 65 |he funct|ion name|
|000033e0| 2e 20 20 2a 2f 0d 73 74 | 61 74 69 63 20 74 72 65 |. */.st|atic tre|
|000033f0| 65 20 6c 61 73 74 5f 65 | 72 72 6f 72 5f 66 75 6e |e last_e|rror_fun|
|00003400| 63 74 69 6f 6e 20 3d 20 | 4e 55 4c 4c 3b 0d 0d 2f |ction = |NULL;../|
|00003410| 2a 20 55 73 65 64 20 74 | 6f 20 64 65 74 65 63 74 |* Used t|o detect|
|00003420| 20 77 68 65 6e 20 69 6e | 70 75 74 5f 66 69 6c 65 | when in|put_file|
|00003430| 5f 73 74 61 63 6b 20 68 | 61 73 20 63 68 61 6e 67 |_stack h|as chang|
|00003440| 65 64 20 73 69 6e 63 65 | 20 6c 61 73 74 20 64 65 |ed since| last de|
|00003450| 73 63 72 69 62 65 64 2e | 20 20 2a 2f 0d 73 74 61 |scribed.| */.sta|
|00003460| 74 69 63 20 69 6e 74 20 | 6c 61 73 74 5f 65 72 72 |tic int |last_err|
|00003470| 6f 72 5f 74 69 63 6b 3b | 0d 0d 2f 2a 20 43 61 6c |or_tick;|../* Cal|
|00003480| 6c 65 64 20 77 68 65 6e | 20 74 68 65 20 73 74 61 |led when| the sta|
|00003490| 72 74 20 6f 66 20 61 20 | 66 75 6e 63 74 69 6f 6e |rt of a |function|
|000034a0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 69 73 20 70 | definit|ion is p|
|000034b0| 61 72 73 65 64 2c 0d 20 | 20 20 74 68 69 73 20 66 |arsed,. | this f|
|000034c0| 75 6e 63 74 69 6f 6e 20 | 70 72 69 6e 74 73 20 6f |unction |prints o|
|000034d0| 6e 20 73 74 64 65 72 72 | 20 74 68 65 20 6e 61 6d |n stderr| the nam|
|000034e0| 65 20 6f 66 20 74 68 65 | 20 66 75 6e 63 74 69 6f |e of the| functio|
|000034f0| 6e 2e 20 20 2a 2f 0d 0d | 76 6f 69 64 0d 61 6e 6e |n. */..|void.ann|
|00003500| 6f 75 6e 63 65 5f 66 75 | 6e 63 74 69 6f 6e 20 28 |ounce_fu|nction (|
|00003510| 64 65 63 6c 29 0d 20 20 | 20 20 20 74 72 65 65 20 |decl). | tree |
|00003520| 64 65 63 6c 3b 0d 7b 0d | 20 20 69 66 20 28 21 20 |decl;.{.| if (! |
|00003530| 71 75 69 65 74 5f 66 6c | 61 67 29 0d 20 20 20 20 |quiet_fl|ag). |
|00003540| 7b 0d 20 20 20 20 20 20 | 66 70 72 69 6e 74 66 20 |{. |fprintf |
|00003550| 28 73 74 64 65 72 72 2c | 20 22 20 25 73 22 2c 20 |(stderr,| " %s", |
|00003560| 44 45 43 4c 5f 50 52 49 | 4e 54 5f 4e 41 4d 45 20 |DECL_PRI|NT_NAME |
|00003570| 28 64 65 63 6c 29 29 3b | 0d 23 69 66 64 65 66 20 |(decl));|.#ifdef |
|00003580| 4d 50 57 0d 20 20 20 20 | 20 20 2f 2a 20 4e 65 77 |MPW. | /* New|
|00003590| 6c 69 6e 65 20 61 66 74 | 65 72 20 66 75 6e 63 74 |line aft|er funct|
|000035a0| 69 6f 6e 20 6e 61 6d 65 | 20 6d 61 6b 65 73 20 75 |ion name| makes u|
|000035b0| 73 20 6c 6f 6f 6b 20 6d | 6f 72 65 20 6c 69 6b 65 |s look m|ore like|
|000035c0| 20 4d 50 57 20 43 2e 20 | 2a 2f 0d 20 20 20 20 20 | MPW C. |*/. |
|000035d0| 20 66 70 72 69 6e 74 66 | 20 28 73 74 64 65 72 72 | fprintf| (stderr|
|000035e0| 2c 20 22 5c 6e 22 29 3b | 0d 23 65 6e 64 69 66 20 |, "\n");|.#endif |
|000035f0| 2f 2a 20 4d 50 57 20 2a | 2f 0d 20 20 20 20 20 20 |/* MPW *|/. |
|00003600| 66 66 6c 75 73 68 20 28 | 73 74 64 65 72 72 29 3b |fflush (|stderr);|
|00003610| 0d 20 20 20 20 20 20 6e | 65 65 64 5f 65 72 72 6f |. n|eed_erro|
|00003620| 72 5f 6e 65 77 6c 69 6e | 65 20 3d 20 31 3b 0d 20 |r_newlin|e = 1;. |
|00003630| 20 20 20 20 20 6c 61 73 | 74 5f 65 72 72 6f 72 5f | las|t_error_|
|00003640| 66 75 6e 63 74 69 6f 6e | 20 3d 20 63 75 72 72 65 |function| = curre|
|00003650| 6e 74 5f 66 75 6e 63 74 | 69 6f 6e 5f 64 65 63 6c |nt_funct|ion_decl|
|00003660| 3b 0d 20 20 20 20 7d 0d | 7d 0d 0d 2f 2a 20 50 72 |;. }.|}../* Pr|
|00003670| 69 6e 74 73 20 6f 75 74 | 2c 20 69 66 20 6e 65 63 |ints out|, if nec|
|00003680| 65 73 73 61 72 79 2c 20 | 74 68 65 20 6e 61 6d 65 |essary, |the name|
|00003690| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|000036a0| 66 75 6e 63 74 69 6f 6e | 0d 20 20 20 77 68 69 63 |function|. whic|
|000036b0| 68 20 63 61 75 73 65 64 | 20 61 6e 20 65 72 72 6f |h caused| an erro|
|000036c0| 72 2e 20 20 43 61 6c 6c | 65 64 20 66 72 6f 6d 20 |r. Call|ed from |
|000036d0| 61 6c 6c 20 65 72 72 6f | 72 20 61 6e 64 20 77 61 |all erro|r and wa|
|000036e0| 72 6e 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 73 2e |rning fu|nctions.|
|000036f0| 20 20 2a 2f 0d 0d 76 6f | 69 64 0d 72 65 70 6f 72 | */..vo|id.repor|
|00003700| 74 5f 65 72 72 6f 72 5f | 66 75 6e 63 74 69 6f 6e |t_error_|function|
|00003710| 20 28 66 69 6c 65 29 0d | 20 20 20 20 20 63 68 61 | (file).| cha|
|00003720| 72 20 2a 66 69 6c 65 3b | 0d 7b 0d 20 20 73 74 72 |r *file;|.{. str|
|00003730| 75 63 74 20 66 69 6c 65 | 5f 73 74 61 63 6b 20 2a |uct file|_stack *|
|00003740| 70 3b 0d 0d 20 20 69 66 | 20 28 6e 65 65 64 5f 65 |p;.. if| (need_e|
|00003750| 72 72 6f 72 5f 6e 65 77 | 6c 69 6e 65 29 0d 20 20 |rror_new|line). |
|00003760| 20 20 7b 0d 20 20 20 20 | 20 20 66 70 72 69 6e 74 | {. | fprint|
|00003770| 66 20 28 73 74 64 65 72 | 72 2c 20 22 5c 6e 22 29 |f (stder|r, "\n")|
|00003780| 3b 0d 20 20 20 20 20 20 | 6e 65 65 64 5f 65 72 72 |;. |need_err|
|00003790| 6f 72 5f 6e 65 77 6c 69 | 6e 65 20 3d 20 30 3b 0d |or_newli|ne = 0;.|
|000037a0| 20 20 20 20 7d 0d 0d 20 | 20 69 66 20 28 6c 61 73 | }.. | if (las|
|000037b0| 74 5f 65 72 72 6f 72 5f | 66 75 6e 63 74 69 6f 6e |t_error_|function|
|000037c0| 20 21 3d 20 63 75 72 72 | 65 6e 74 5f 66 75 6e 63 | != curr|ent_func|
|000037d0| 74 69 6f 6e 5f 64 65 63 | 6c 29 0d 20 20 20 20 7b |tion_dec|l). {|
|000037e0| 0d 20 20 20 20 20 20 69 | 66 20 28 66 69 6c 65 29 |. i|f (file)|
|000037f0| 0d 09 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 |..fprint|f (stder|
|00003800| 72 2c 20 22 25 73 3a 20 | 22 2c 20 66 69 6c 65 29 |r, "%s: |", file)|
|00003810| 3b 0d 0d 20 20 20 20 20 | 20 69 66 20 28 63 75 72 |;.. | if (cur|
|00003820| 72 65 6e 74 5f 66 75 6e | 63 74 69 6f 6e 5f 64 65 |rent_fun|ction_de|
|00003830| 63 6c 20 3d 3d 20 4e 55 | 4c 4c 29 0d 09 66 70 72 |cl == NU|LL)..fpr|
|00003840| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 41 |intf (st|derr, "A|
|00003850| 74 20 74 6f 70 20 6c 65 | 76 65 6c 3a 5c 6e 22 29 |t top le|vel:\n")|
|00003860| 3b 0d 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 |;. |else if |
|00003870| 28 54 52 45 45 5f 43 4f | 44 45 20 28 54 52 45 45 |(TREE_CO|DE (TREE|
|00003880| 5f 54 59 50 45 20 28 63 | 75 72 72 65 6e 74 5f 66 |_TYPE (c|urrent_f|
|00003890| 75 6e 63 74 69 6f 6e 5f | 64 65 63 6c 29 29 20 3d |unction_|decl)) =|
|000038a0| 3d 20 4d 45 54 48 4f 44 | 5f 54 59 50 45 29 0d 09 |= METHOD|_TYPE)..|
|000038b0| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|000038c0| 20 22 49 6e 20 6d 65 74 | 68 6f 64 20 25 73 3a 5c | "In met|hod %s:\|
|000038d0| 6e 22 2c 0d 09 09 20 44 | 45 43 4c 5f 50 52 49 4e |n",... D|ECL_PRIN|
|000038e0| 54 5f 4e 41 4d 45 20 28 | 63 75 72 72 65 6e 74 5f |T_NAME (|current_|
|000038f0| 66 75 6e 63 74 69 6f 6e | 5f 64 65 63 6c 29 29 3b |function|_decl));|
|00003900| 0d 20 20 20 20 20 20 65 | 6c 73 65 0d 09 66 70 72 |. e|lse..fpr|
|00003910| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 49 |intf (st|derr, "I|
|00003920| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 25 73 3a 5c 6e |n functi|on %s:\n|
|00003930| 22 2c 0d 09 09 20 44 45 | 43 4c 5f 50 52 49 4e 54 |",... DE|CL_PRINT|
|00003940| 5f 4e 41 4d 45 20 28 63 | 75 72 72 65 6e 74 5f 66 |_NAME (c|urrent_f|
|00003950| 75 6e 63 74 69 6f 6e 5f | 64 65 63 6c 29 29 3b 0d |unction_|decl));.|
|00003960| 0d 20 20 20 20 20 20 6c | 61 73 74 5f 65 72 72 6f |. l|ast_erro|
|00003970| 72 5f 66 75 6e 63 74 69 | 6f 6e 20 3d 20 63 75 72 |r_functi|on = cur|
|00003980| 72 65 6e 74 5f 66 75 6e | 63 74 69 6f 6e 5f 64 65 |rent_fun|ction_de|
|00003990| 63 6c 3b 0d 20 20 20 20 | 7d 0d 20 20 69 66 20 28 |cl;. |}. if (|
|000039a0| 69 6e 70 75 74 5f 66 69 | 6c 65 5f 73 74 61 63 6b |input_fi|le_stack|
|000039b0| 20 26 26 20 69 6e 70 75 | 74 5f 66 69 6c 65 5f 73 | && inpu|t_file_s|
|000039c0| 74 61 63 6b 2d 3e 6e 65 | 78 74 20 21 3d 20 30 0d |tack->ne|xt != 0.|
|000039d0| 20 20 20 20 20 20 26 26 | 20 69 6e 70 75 74 5f 66 | &&| input_f|
|000039e0| 69 6c 65 5f 73 74 61 63 | 6b 5f 74 69 63 6b 20 21 |ile_stac|k_tick !|
|000039f0| 3d 20 6c 61 73 74 5f 65 | 72 72 6f 72 5f 74 69 63 |= last_e|rror_tic|
|00003a00| 6b 29 0d 20 20 20 20 7b | 0d 20 20 20 20 20 20 66 |k). {|. f|
|00003a10| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00003a20| 22 49 6e 20 66 69 6c 65 | 20 69 6e 63 6c 75 64 65 |"In file| include|
|00003a30| 64 22 29 3b 0d 20 20 20 | 20 20 20 66 6f 72 20 28 |d");. | for (|
|00003a40| 70 20 3d 20 69 6e 70 75 | 74 5f 66 69 6c 65 5f 73 |p = inpu|t_file_s|
|00003a50| 74 61 63 6b 2d 3e 6e 65 | 78 74 3b 20 70 3b 20 70 |tack->ne|xt; p; p|
|00003a60| 20 3d 20 70 2d 3e 6e 65 | 78 74 29 0d 09 7b 0d 09 | = p->ne|xt)..{..|
|00003a70| 20 20 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 | fprint|f (stder|
|00003a80| 72 2c 20 22 20 66 72 6f | 6d 20 25 73 3a 25 64 22 |r, " fro|m %s:%d"|
|00003a90| 2c 20 70 2d 3e 6e 61 6d | 65 2c 20 70 2d 3e 6c 69 |, p->nam|e, p->li|
|00003aa0| 6e 65 29 3b 0d 09 20 20 | 69 66 20 28 70 2d 3e 6e |ne);.. |if (p->n|
|00003ab0| 65 78 74 29 0d 09 20 20 | 20 20 66 70 72 69 6e 74 |ext).. | fprint|
|00003ac0| 66 20 28 73 74 64 65 72 | 72 2c 20 22 2c 22 29 3b |f (stder|r, ",");|
|00003ad0| 0d 09 7d 0d 20 20 20 20 | 20 20 66 70 72 69 6e 74 |..}. | fprint|
|00003ae0| 66 20 28 73 74 64 65 72 | 72 2c 20 22 3a 5c 6e 22 |f (stder|r, ":\n"|
|00003af0| 29 3b 0d 20 20 20 20 20 | 20 6c 61 73 74 5f 65 72 |);. | last_er|
|00003b00| 72 6f 72 5f 74 69 63 6b | 20 3d 20 69 6e 70 75 74 |ror_tick| = input|
|00003b10| 5f 66 69 6c 65 5f 73 74 | 61 63 6b 5f 74 69 63 6b |_file_st|ack_tick|
|00003b20| 3b 0d 20 20 20 20 7d 0d | 7d 0d 0d 2f 2a 20 52 65 |;. }.|}../* Re|
|00003b30| 70 6f 72 74 20 61 6e 20 | 65 72 72 6f 72 20 61 74 |port an |error at|
|00003b40| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|00003b50| 65 20 6e 75 6d 62 65 72 | 2e 0d 20 20 20 53 20 61 |e number|.. S a|
|00003b60| 6e 64 20 56 20 61 72 65 | 20 61 20 73 74 72 69 6e |nd V are| a strin|
|00003b70| 67 20 61 6e 64 20 61 6e | 20 61 72 67 20 66 6f 72 |g and an| arg for|
|00003b80| 20 60 70 72 69 6e 74 66 | 27 2e 20 20 2a 2f 0d 0d | `printf|'. */..|
|00003b90| 76 6f 69 64 0d 65 72 72 | 6f 72 20 28 73 2c 20 76 |void.err|or (s, v|
|00003ba0| 2c 20 76 32 29 0d 20 20 | 20 20 20 63 68 61 72 20 |, v2). | char |
|00003bb0| 2a 73 3b 0d 20 20 20 20 | 20 69 6e 74 20 76 3b 09 |*s;. | int v;.|
|00003bc0| 09 09 2f 2a 20 40 40 61 | 6c 73 6f 20 75 73 65 64 |../* @@a|lso used|
|00003bd0| 20 61 73 20 70 6f 69 6e | 74 65 72 20 2a 2f 0d 20 | as poin|ter */. |
|00003be0| 20 20 20 20 69 6e 74 20 | 76 32 3b 09 09 09 2f 2a | int |v2;.../*|
|00003bf0| 20 40 40 61 6c 73 6f 20 | 75 73 65 64 20 61 73 20 | @@also |used as |
|00003c00| 70 6f 69 6e 74 65 72 20 | 2a 2f 0d 7b 0d 20 20 65 |pointer |*/.{. e|
|00003c10| 72 72 6f 72 5f 77 69 74 | 68 5f 66 69 6c 65 5f 61 |rror_wit|h_file_a|
|00003c20| 6e 64 5f 6c 69 6e 65 20 | 28 69 6e 70 75 74 5f 66 |nd_line |(input_f|
|00003c30| 69 6c 65 6e 61 6d 65 2c | 20 6c 69 6e 65 6e 6f 2c |ilename,| lineno,|
|00003c40| 20 73 2c 20 76 2c 20 76 | 32 29 3b 0d 7d 0d 0d 2f | s, v, v|2);.}../|
|00003c50| 2a 20 52 65 70 6f 72 74 | 20 61 6e 20 65 72 72 6f |* Report| an erro|
|00003c60| 72 20 61 74 20 6c 69 6e | 65 20 4c 49 4e 45 20 6f |r at lin|e LINE o|
|00003c70| 66 20 66 69 6c 65 20 46 | 49 4c 45 2e 0d 20 20 20 |f file F|ILE.. |
|00003c80| 53 20 61 6e 64 20 56 20 | 61 72 65 20 61 20 73 74 |S and V |are a st|
|00003c90| 72 69 6e 67 20 61 6e 64 | 20 61 6e 20 61 72 67 20 |ring and| an arg |
|00003ca0| 66 6f 72 20 60 70 72 69 | 6e 74 66 27 2e 20 20 2a |for `pri|ntf'. *|
|00003cb0| 2f 0d 0d 76 6f 69 64 0d | 65 72 72 6f 72 5f 77 69 |/..void.|error_wi|
|00003cc0| 74 68 5f 66 69 6c 65 5f | 61 6e 64 5f 6c 69 6e 65 |th_file_|and_line|
|00003cd0| 20 28 66 69 6c 65 2c 20 | 6c 69 6e 65 2c 20 73 2c | (file, |line, s,|
|00003ce0| 20 76 2c 20 76 32 29 0d | 20 20 20 20 20 63 68 61 | v, v2).| cha|
|00003cf0| 72 20 2a 66 69 6c 65 3b | 0d 20 20 20 20 20 69 6e |r *file;|. in|
|00003d00| 74 20 6c 69 6e 65 3b 0d | 20 20 20 20 20 63 68 61 |t line;.| cha|
|00003d10| 72 20 2a 73 3b 0d 20 20 | 20 20 20 69 6e 74 20 76 |r *s;. | int v|
|00003d20| 3b 0d 20 20 20 20 20 69 | 6e 74 20 76 32 3b 0d 7b |;. i|nt v2;.{|
|00003d30| 0d 20 20 63 6f 75 6e 74 | 5f 65 72 72 6f 72 20 28 |. count|_error (|
|00003d40| 30 29 3b 0d 0d 20 20 72 | 65 70 6f 72 74 5f 65 72 |0);.. r|eport_er|
|00003d50| 72 6f 72 5f 66 75 6e 63 | 74 69 6f 6e 20 28 66 69 |ror_func|tion (fi|
|00003d60| 6c 65 29 3b 0d 0d 20 20 | 69 66 20 28 66 69 6c 65 |le);.. |if (file|
|00003d70| 29 0d 23 69 66 64 65 66 | 20 4d 50 57 0d 20 20 20 |).#ifdef| MPW. |
|00003d80| 20 2f 2a 20 50 72 69 6e | 74 20 66 69 6c 65 20 61 | /* Prin|t file a|
|00003d90| 6e 64 20 6c 69 6e 65 20 | 73 6f 20 74 68 61 74 20 |nd line |so that |
|00003da0| 74 68 65 79 27 72 65 20 | 76 61 6c 69 64 20 4d 50 |they're |valid MP|
|00003db0| 57 20 63 6f 6d 6d 61 6e | 64 73 2e 20 2a 2f 0d 20 |W comman|ds. */. |
|00003dc0| 20 20 20 66 70 72 69 6e | 74 66 20 28 73 74 64 65 | fprin|tf (stde|
|00003dd0| 72 72 2c 20 22 46 69 6c | 65 20 5c 22 25 73 5c 22 |rr, "Fil|e \"%s\"|
|00003de0| 3b 20 4c 69 6e 65 20 25 | 64 5c 74 23 20 22 2c 20 |; Line %|d\t# ", |
|00003df0| 66 69 6c 65 2c 20 6c 69 | 6e 65 29 3b 0d 23 65 6c |file, li|ne);.#el|
|00003e00| 73 65 0d 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 |se. f|printf (|
|00003e10| 73 74 64 65 72 72 2c 20 | 22 25 73 3a 25 64 3a 20 |stderr, |"%s:%d: |
|00003e20| 22 2c 20 66 69 6c 65 2c | 20 6c 69 6e 65 29 3b 0d |", file,| line);.|
|00003e30| 23 65 6e 64 69 66 20 2f | 2a 20 4d 50 57 20 2a 2f |#endif /|* MPW */|
|00003e40| 0d 20 20 65 6c 73 65 0d | 20 20 20 20 66 70 72 69 |. else.| fpri|
|00003e50| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 20 22 25 73 |ntf (std|err, "%s|
|00003e60| 3a 20 22 2c 20 70 72 6f | 67 6e 61 6d 65 29 3b 0d |: ", pro|gname);.|
|00003e70| 20 20 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 | fprint|f (stder|
|00003e80| 72 2c 20 73 2c 20 76 2c | 20 76 32 29 3b 0d 20 20 |r, s, v,| v2);. |
|00003e90| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00003ea0| 20 22 5c 6e 22 29 3b 0d | 7d 0d 0d 2f 2a 20 52 65 | "\n");.|}../* Re|
|00003eb0| 70 6f 72 74 20 61 6e 20 | 65 72 72 6f 72 20 61 74 |port an |error at|
|00003ec0| 20 74 68 65 20 64 65 63 | 6c 61 72 61 74 69 6f 6e | the dec|laration|
|00003ed0| 20 44 45 43 4c 2e 0d 20 | 20 20 53 20 61 6e 64 20 | DECL.. | S and |
|00003ee0| 56 20 61 72 65 20 61 20 | 73 74 72 69 6e 67 20 61 |V are a |string a|
|00003ef0| 6e 64 20 61 6e 20 61 72 | 67 20 77 68 69 63 68 20 |nd an ar|g which |
|00003f00| 75 73 65 73 20 25 73 20 | 74 6f 20 73 75 62 73 74 |uses %s |to subst|
|00003f10| 69 74 75 74 65 20 74 68 | 65 20 64 65 63 6c 61 72 |itute th|e declar|
|00003f20| 61 74 69 6f 6e 20 6e 61 | 6d 65 2e 20 20 2a 2f 0d |ation na|me. */.|
|00003f30| 0d 76 6f 69 64 0d 65 72 | 72 6f 72 5f 77 69 74 68 |.void.er|ror_with|
|00003f40| 5f 64 65 63 6c 20 28 64 | 65 63 6c 2c 20 73 2c 20 |_decl (d|ecl, s, |
|00003f50| 76 29 0d 20 20 20 20 20 | 74 72 65 65 20 64 65 63 |v). |tree dec|
|00003f60| 6c 3b 0d 20 20 20 20 20 | 63 68 61 72 20 2a 73 3b |l;. |char *s;|
|00003f70| 0d 20 20 20 20 20 69 6e | 74 20 76 3b 0d 7b 0d 20 |. in|t v;.{. |
|00003f80| 20 63 6f 75 6e 74 5f 65 | 72 72 6f 72 20 28 30 29 | count_e|rror (0)|
|00003f90| 3b 0d 0d 20 20 72 65 70 | 6f 72 74 5f 65 72 72 6f |;.. rep|ort_erro|
|00003fa0| 72 5f 66 75 6e 63 74 69 | 6f 6e 20 28 44 45 43 4c |r_functi|on (DECL|
|00003fb0| 5f 53 4f 55 52 43 45 5f | 46 49 4c 45 20 28 64 65 |_SOURCE_|FILE (de|
|00003fc0| 63 6c 29 29 3b 0d 0d 23 | 69 66 64 65 66 20 4d 50 |cl));..#|ifdef MP|
|00003fd0| 57 0d 20 20 2f 2a 20 50 | 72 69 6e 74 20 66 69 6c |W. /* P|rint fil|
|00003fe0| 65 20 61 6e 64 20 6c 69 | 6e 65 20 73 6f 20 74 68 |e and li|ne so th|
|00003ff0| 61 74 20 74 68 65 79 27 | 72 65 20 76 61 6c 69 64 |at they'|re valid|
|00004000| 20 4d 50 57 20 63 6f 6d | 6d 61 6e 64 73 2e 20 2a | MPW com|mands. *|
|00004010| 2f 0d 20 20 66 70 72 69 | 6e 74 66 20 28 73 74 64 |/. fpri|ntf (std|
|00004020| 65 72 72 2c 20 22 46 69 | 6c 65 20 5c 22 25 73 5c |err, "Fi|le \"%s\|
|00004030| 22 3b 20 4c 69 6e 65 20 | 25 64 5c 74 23 20 22 2c |"; Line |%d\t# ",|
|00004040| 0d 23 65 6c 73 65 0d 20 | 20 66 70 72 69 6e 74 66 |.#else. | fprintf|
|00004050| 20 28 73 74 64 65 72 72 | 2c 20 22 25 73 3a 25 64 | (stderr|, "%s:%d|
|00004060| 3a 20 22 2c 0d 23 65 6e | 64 69 66 20 2f 2a 20 4d |: ",.#en|dif /* M|
|00004070| 50 57 20 2a 2f 0d 09 20 | 20 20 44 45 43 4c 5f 53 |PW */.. | DECL_S|
|00004080| 4f 55 52 43 45 5f 46 49 | 4c 45 20 28 64 65 63 6c |OURCE_FI|LE (decl|
|00004090| 29 2c 20 44 45 43 4c 5f | 53 4f 55 52 43 45 5f 4c |), DECL_|SOURCE_L|
|000040a0| 49 4e 45 20 28 64 65 63 | 6c 29 29 3b 0d 0d 20 20 |INE (dec|l));.. |
|000040b0| 69 66 20 28 44 45 43 4c | 5f 50 52 49 4e 54 5f 4e |if (DECL|_PRINT_N|
|000040c0| 41 4d 45 20 28 64 65 63 | 6c 29 29 0d 20 20 20 20 |AME (dec|l)). |
|000040d0| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|000040e0| 20 73 2c 20 44 45 43 4c | 5f 50 52 49 4e 54 5f 4e | s, DECL|_PRINT_N|
|000040f0| 41 4d 45 20 28 64 65 63 | 6c 29 2c 20 76 29 3b 0d |AME (dec|l), v);.|
|00004100| 20 20 65 6c 73 65 20 69 | 66 20 28 44 45 43 4c 5f | else i|f (DECL_|
|00004110| 4e 41 4d 45 20 28 64 65 | 63 6c 29 29 0d 20 20 20 |NAME (de|cl)). |
|00004120| 20 66 70 72 69 6e 74 66 | 20 28 73 74 64 65 72 72 | fprintf| (stderr|
|00004130| 2c 20 73 2c 20 49 44 45 | 4e 54 49 46 49 45 52 5f |, s, IDE|NTIFIER_|
|00004140| 50 4f 49 4e 54 45 52 20 | 28 44 45 43 4c 5f 4e 41 |POINTER |(DECL_NA|
|00004150| 4d 45 20 28 64 65 63 6c | 29 29 2c 20 76 29 3b 0d |ME (decl|)), v);.|
|00004160| 20 20 65 6c 73 65 0d 20 | 20 20 20 66 70 72 69 6e | else. | fprin|
|00004170| 74 66 20 28 73 74 64 65 | 72 72 2c 20 73 2c 20 22 |tf (stde|rr, s, "|
|00004180| 28 28 61 6e 6f 6e 79 6d | 6f 75 73 29 29 22 2c 20 |((anonym|ous))", |
|00004190| 76 29 3b 0d 20 20 66 70 | 72 69 6e 74 66 20 28 73 |v);. fp|rintf (s|
|000041a0| 74 64 65 72 72 2c 20 22 | 5c 6e 22 29 3b 0d 7d 0d |tderr, "|\n");.}.|
|000041b0| 0d 2f 2a 20 52 65 70 6f | 72 74 20 61 6e 20 65 72 |./* Repo|rt an er|
|000041c0| 72 6f 72 20 61 74 20 74 | 68 65 20 6c 69 6e 65 20 |ror at t|he line |
|000041d0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 69 6e |number o|f the in|
|000041e0| 73 6e 20 49 4e 53 4e 2e | 0d 20 20 20 53 20 61 6e |sn INSN.|. S an|
|000041f0| 64 20 56 20 61 72 65 20 | 61 20 73 74 72 69 6e 67 |d V are |a string|
|00004200| 20 61 6e 64 20 61 6e 20 | 61 72 67 20 66 6f 72 20 | and an |arg for |
|00004210| 60 70 72 69 6e 74 66 27 | 2e 0d 20 20 20 54 68 69 |`printf'|.. Thi|
|00004220| 73 20 69 73 20 75 73 65 | 64 20 6f 6e 6c 79 20 77 |s is use|d only w|
|00004230| 68 65 6e 20 49 4e 53 4e | 20 69 73 20 61 6e 20 60 |hen INSN| is an `|
|00004240| 61 73 6d 27 20 77 69 74 | 68 20 6f 70 65 72 61 6e |asm' wit|h operan|
|00004250| 64 73 2c 0d 20 20 20 61 | 6e 64 20 65 61 63 68 20 |ds,. a|nd each |
|00004260| 41 53 4d 5f 4f 50 45 52 | 41 4e 44 53 20 72 65 63 |ASM_OPER|ANDS rec|
|00004270| 6f 72 64 73 20 69 74 73 | 20 6f 77 6e 20 73 6f 75 |ords its| own sou|
|00004280| 72 63 65 20 66 69 6c 65 | 20 61 6e 64 20 6c 69 6e |rce file| and lin|
|00004290| 65 2e 20 20 2a 2f 0d 0d | 76 6f 69 64 0d 65 72 72 |e. */..|void.err|
|000042a0| 6f 72 5f 66 6f 72 5f 61 | 73 6d 20 28 69 6e 73 6e |or_for_a|sm (insn|
|000042b0| 2c 20 73 2c 20 76 2c 20 | 76 32 29 0d 20 20 20 20 |, s, v, |v2). |
|000042c0| 20 72 74 78 20 69 6e 73 | 6e 3b 0d 20 20 20 20 20 | rtx ins|n;. |
|000042d0| 63 68 61 72 20 2a 73 3b | 0d 20 20 20 20 20 69 6e |char *s;|. in|
|000042e0| 74 20 76 3b 09 09 09 2f | 2a 20 40 40 61 6c 73 6f |t v;.../|* @@also|
|000042f0| 20 75 73 65 64 20 61 73 | 20 70 6f 69 6e 74 65 72 | used as| pointer|
|00004300| 20 2a 2f 0d 20 20 20 20 | 20 69 6e 74 20 76 32 3b | */. | int v2;|
|00004310| 09 09 09 2f 2a 20 40 40 | 61 6c 73 6f 20 75 73 65 |.../* @@|also use|
|00004320| 64 20 61 73 20 70 6f 69 | 6e 74 65 72 20 2a 2f 0d |d as poi|nter */.|
|00004330| 7b 0d 20 20 72 74 78 20 | 74 65 6d 70 3b 0d 20 20 |{. rtx |temp;. |
|00004340| 63 68 61 72 20 2a 66 69 | 6c 65 6e 61 6d 65 3b 0d |char *fi|lename;.|
|00004350| 20 20 69 6e 74 20 6c 69 | 6e 65 3b 0d 20 20 72 74 | int li|ne;. rt|
|00004360| 78 20 62 6f 64 79 20 3d | 20 50 41 54 54 45 52 4e |x body =| PATTERN|
|00004370| 20 28 69 6e 73 6e 29 3b | 0d 20 20 72 74 78 20 61 | (insn);|. rtx a|
|00004380| 73 6d 6f 70 3b 0d 0d 20 | 20 2f 2a 20 46 69 6e 64 |smop;.. | /* Find|
|00004390| 20 74 68 65 20 28 6f 72 | 20 6f 6e 65 20 6f 66 20 | the (or| one of |
|000043a0| 74 68 65 29 20 41 53 4d | 5f 4f 50 45 52 41 4e 44 |the) ASM|_OPERAND|
|000043b0| 53 20 69 6e 20 74 68 65 | 20 69 6e 73 6e 2e 20 20 |S in the| insn. |
|000043c0| 2a 2f 0d 20 20 69 66 20 | 28 47 45 54 5f 43 4f 44 |*/. if |(GET_COD|
|000043d0| 45 20 28 62 6f 64 79 29 | 20 3d 3d 20 53 45 54 20 |E (body)| == SET |
|000043e0| 26 26 20 47 45 54 5f 43 | 4f 44 45 20 28 53 45 54 |&& GET_C|ODE (SET|
|000043f0| 5f 53 52 43 20 28 62 6f | 64 79 29 29 20 3d 3d 20 |_SRC (bo|dy)) == |
|00004400| 41 53 4d 5f 4f 50 45 52 | 41 4e 44 53 29 0d 20 20 |ASM_OPER|ANDS). |
|00004410| 20 20 61 73 6d 6f 70 20 | 3d 20 53 45 54 5f 53 52 | asmop |= SET_SR|
|00004420| 43 20 28 62 6f 64 79 29 | 3b 0d 20 20 65 6c 73 65 |C (body)|;. else|
|00004430| 20 69 66 20 28 47 45 54 | 5f 43 4f 44 45 20 28 62 | if (GET|_CODE (b|
|00004440| 6f 64 79 29 20 3d 3d 20 | 41 53 4d 5f 4f 50 45 52 |ody) == |ASM_OPER|
|00004450| 41 4e 44 53 29 0d 20 20 | 20 20 61 73 6d 6f 70 20 |ANDS). | asmop |
|00004460| 3d 20 62 6f 64 79 3b 0d | 20 20 65 6c 73 65 20 69 |= body;.| else i|
|00004470| 66 20 28 47 45 54 5f 43 | 4f 44 45 20 28 62 6f 64 |f (GET_C|ODE (bod|
|00004480| 79 29 20 3d 3d 20 50 41 | 52 41 4c 4c 45 4c 0d 09 |y) == PA|RALLEL..|
|00004490| 20 20 20 26 26 20 47 45 | 54 5f 43 4f 44 45 20 28 | && GE|T_CODE (|
|000044a0| 58 56 45 43 45 58 50 20 | 28 62 6f 64 79 2c 20 30 |XVECEXP |(body, 0|
|000044b0| 2c 20 30 29 29 20 3d 3d | 20 53 45 54 29 0d 20 20 |, 0)) ==| SET). |
|000044c0| 20 20 61 73 6d 6f 70 20 | 3d 20 53 45 54 5f 53 52 | asmop |= SET_SR|
|000044d0| 43 20 28 58 56 45 43 45 | 58 50 20 28 62 6f 64 79 |C (XVECE|XP (body|
|000044e0| 2c 20 30 2c 20 30 29 29 | 3b 0d 20 20 65 6c 73 65 |, 0, 0))|;. else|
|000044f0| 20 69 66 20 28 47 45 54 | 5f 43 4f 44 45 20 28 62 | if (GET|_CODE (b|
|00004500| 6f 64 79 29 20 3d 3d 20 | 50 41 52 41 4c 4c 45 4c |ody) == |PARALLEL|
|00004510| 0d 09 20 20 20 26 26 20 | 47 45 54 5f 43 4f 44 45 |.. && |GET_CODE|
|00004520| 20 28 58 56 45 43 45 58 | 50 20 28 62 6f 64 79 2c | (XVECEX|P (body,|
|00004530| 20 30 2c 20 30 29 29 20 | 3d 3d 20 41 53 4d 5f 4f | 0, 0)) |== ASM_O|
|00004540| 50 45 52 41 4e 44 53 29 | 0d 20 20 20 20 61 73 6d |PERANDS)|. asm|
|00004550| 6f 70 20 3d 20 58 56 45 | 43 45 58 50 20 28 62 6f |op = XVE|CEXP (bo|
|00004560| 64 79 2c 20 30 2c 20 30 | 29 3b 0d 0d 20 20 66 69 |dy, 0, 0|);.. fi|
|00004570| 6c 65 6e 61 6d 65 20 3d | 20 41 53 4d 5f 4f 50 45 |lename =| ASM_OPE|
|00004580| 52 41 4e 44 53 5f 53 4f | 55 52 43 45 5f 46 49 4c |RANDS_SO|URCE_FIL|
|00004590| 45 20 28 61 73 6d 6f 70 | 29 3b 0d 20 20 6c 69 6e |E (asmop|);. lin|
|000045a0| 65 20 3d 20 41 53 4d 5f | 4f 50 45 52 41 4e 44 53 |e = ASM_|OPERANDS|
|000045b0| 5f 53 4f 55 52 43 45 5f | 4c 49 4e 45 20 28 61 73 |_SOURCE_|LINE (as|
|000045c0| 6d 6f 70 29 3b 0d 0d 20 | 20 65 72 72 6f 72 5f 77 |mop);.. | error_w|
|000045d0| 69 74 68 5f 66 69 6c 65 | 5f 61 6e 64 5f 6c 69 6e |ith_file|_and_lin|
|000045e0| 65 20 28 66 69 6c 65 6e | 61 6d 65 2c 20 6c 69 6e |e (filen|ame, lin|
|000045f0| 65 2c 20 73 2c 20 76 2c | 20 76 32 29 3b 0d 7d 0d |e, s, v,| v2);.}.|
|00004600| 0d 2f 2a 20 52 65 70 6f | 72 74 20 61 20 77 61 72 |./* Repo|rt a war|
|00004610| 6e 69 6e 67 20 61 74 20 | 6c 69 6e 65 20 4c 49 4e |ning at |line LIN|
|00004620| 45 2e 0d 20 20 20 53 20 | 61 6e 64 20 56 20 61 72 |E.. S |and V ar|
|00004630| 65 20 61 20 73 74 72 69 | 6e 67 20 61 6e 64 20 61 |e a stri|ng and a|
|00004640| 6e 20 61 72 67 20 66 6f | 72 20 60 70 72 69 6e 74 |n arg fo|r `print|
|00004650| 66 27 2e 20 20 2a 2f 0d | 0d 76 6f 69 64 0d 77 61 |f'. */.|.void.wa|
|00004660| 72 6e 69 6e 67 5f 77 69 | 74 68 5f 66 69 6c 65 5f |rning_wi|th_file_|
|00004670| 61 6e 64 5f 6c 69 6e 65 | 20 28 66 69 6c 65 2c 20 |and_line| (file, |
|00004680| 6c 69 6e 65 2c 20 73 2c | 20 76 2c 20 76 32 29 0d |line, s,| v, v2).|
|00004690| 20 20 20 20 20 63 68 61 | 72 20 2a 66 69 6c 65 3b | cha|r *file;|
|000046a0| 0d 20 20 20 20 20 69 6e | 74 20 6c 69 6e 65 3b 0d |. in|t line;.|
|000046b0| 20 20 20 20 20 63 68 61 | 72 20 2a 73 3b 0d 20 20 | cha|r *s;. |
|000046c0| 20 20 20 69 6e 74 20 76 | 3b 0d 20 20 20 20 20 69 | int v|;. i|
|000046d0| 6e 74 20 76 32 3b 0d 7b | 0d 20 20 69 66 20 28 63 |nt v2;.{|. if (c|
|000046e0| 6f 75 6e 74 5f 65 72 72 | 6f 72 20 28 31 29 20 3d |ount_err|or (1) =|
|000046f0| 3d 20 30 29 0d 20 20 20 | 20 72 65 74 75 72 6e 3b |= 0). | return;|
|00004700| 0d 0d 20 20 72 65 70 6f | 72 74 5f 65 72 72 6f 72 |.. repo|rt_error|
|00004710| 5f 66 75 6e 63 74 69 6f | 6e 20 28 66 69 6c 65 29 |_functio|n (file)|
|00004720| 3b 0d 0d 20 20 69 66 20 | 28 66 69 6c 65 29 0d 23 |;.. if |(file).#|
|00004730| 69 66 64 65 66 20 4d 50 | 57 0d 20 20 20 20 2f 2a |ifdef MP|W. /*|
|00004740| 20 50 72 69 6e 74 20 66 | 69 6c 65 20 61 6e 64 20 | Print f|ile and |
|00004750| 6c 69 6e 65 20 73 6f 20 | 74 68 61 74 20 74 68 65 |line so |that the|
|00004760| 79 27 72 65 20 76 61 6c | 69 64 20 4d 50 57 20 63 |y're val|id MPW c|
|00004770| 6f 6d 6d 61 6e 64 73 2e | 20 2a 2f 0d 20 20 20 20 |ommands.| */. |
|00004780| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00004790| 20 22 46 69 6c 65 20 5c | 22 25 73 5c 22 3b 20 4c | "File \|"%s\"; L|
|000047a0| 69 6e 65 20 25 64 5c 74 | 23 20 22 2c 20 66 69 6c |ine %d\t|# ", fil|
|000047b0| 65 2c 20 6c 69 6e 65 29 | 3b 0d 23 65 6c 73 65 0d |e, line)|;.#else.|
|000047c0| 20 20 20 20 66 70 72 69 | 6e 74 66 20 28 73 74 64 | fpri|ntf (std|
|000047d0| 65 72 72 2c 20 22 25 73 | 3a 25 64 3a 20 22 2c 20 |err, "%s|:%d: ", |
|000047e0| 66 69 6c 65 2c 20 6c 69 | 6e 65 29 3b 0d 23 65 6e |file, li|ne);.#en|
|000047f0| 64 69 66 20 2f 2a 20 4d | 50 57 20 2a 2f 0d 20 20 |dif /* M|PW */. |
|00004800| 65 6c 73 65 0d 20 20 20 | 20 66 70 72 69 6e 74 66 |else. | fprintf|
|00004810| 20 28 73 74 64 65 72 72 | 2c 20 22 25 73 3a 20 22 | (stderr|, "%s: "|
|00004820| 2c 20 70 72 6f 67 6e 61 | 6d 65 29 3b 0d 0d 20 20 |, progna|me);.. |
|00004830| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00004840| 20 22 77 61 72 6e 69 6e | 67 3a 20 22 29 3b 0d 20 | "warnin|g: ");. |
|00004850| 20 66 70 72 69 6e 74 66 | 20 28 73 74 64 65 72 72 | fprintf| (stderr|
|00004860| 2c 20 73 2c 20 76 2c 20 | 76 32 29 3b 0d 20 20 66 |, s, v, |v2);. f|
|00004870| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00004880| 22 5c 6e 22 29 3b 0d 7d | 0d 0d 2f 2a 20 52 65 70 |"\n");.}|../* Rep|
|00004890| 6f 72 74 20 61 20 77 61 | 72 6e 69 6e 67 20 61 74 |ort a wa|rning at|
|000048a0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|000048b0| 65 20 6e 75 6d 62 65 72 | 2e 0d 20 20 20 53 20 61 |e number|.. S a|
|000048c0| 6e 64 20 56 20 61 72 65 | 20 61 20 73 74 72 69 6e |nd V are| a strin|
|000048d0| 67 20 61 6e 64 20 61 6e | 20 61 72 67 20 66 6f 72 |g and an| arg for|
|000048e0| 20 60 70 72 69 6e 74 66 | 27 2e 20 20 2a 2f 0d 0d | `printf|'. */..|
|000048f0| 76 6f 69 64 0d 77 61 72 | 6e 69 6e 67 20 28 73 2c |void.war|ning (s,|
|00004900| 20 76 2c 20 76 32 29 0d | 20 20 20 20 20 63 68 61 | v, v2).| cha|
|00004910| 72 20 2a 73 3b 0d 20 20 | 20 20 20 69 6e 74 20 76 |r *s;. | int v|
|00004920| 3b 09 09 09 2f 2a 20 40 | 40 61 6c 73 6f 20 75 73 |;.../* @|@also us|
|00004930| 65 64 20 61 73 20 70 6f | 69 6e 74 65 72 20 2a 2f |ed as po|inter */|
|00004940| 0d 20 20 20 20 20 69 6e | 74 20 76 32 3b 0d 7b 0d |. in|t v2;.{.|
|00004950| 20 20 77 61 72 6e 69 6e | 67 5f 77 69 74 68 5f 66 | warnin|g_with_f|
|00004960| 69 6c 65 5f 61 6e 64 5f | 6c 69 6e 65 20 28 69 6e |ile_and_|line (in|
|00004970| 70 75 74 5f 66 69 6c 65 | 6e 61 6d 65 2c 20 6c 69 |put_file|name, li|
|00004980| 6e 65 6e 6f 2c 20 73 2c | 20 76 2c 20 76 32 29 3b |neno, s,| v, v2);|
|00004990| 0d 7d 0d 0d 2f 2a 20 52 | 65 70 6f 72 74 20 61 20 |.}../* R|eport a |
|000049a0| 77 61 72 6e 69 6e 67 20 | 61 74 20 74 68 65 20 64 |warning |at the d|
|000049b0| 65 63 6c 61 72 61 74 69 | 6f 6e 20 44 45 43 4c 2e |eclarati|on DECL.|
|000049c0| 0d 20 20 20 53 20 69 73 | 20 73 74 72 69 6e 67 20 |. S is| string |
|000049d0| 77 68 69 63 68 20 75 73 | 65 73 20 25 73 20 74 6f |which us|es %s to|
|000049e0| 20 73 75 62 73 74 69 74 | 75 74 65 20 74 68 65 20 | substit|ute the |
|000049f0| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 6e 61 6d 65 |declarat|ion name|
|00004a00| 2e 0d 20 20 20 56 20 69 | 73 20 61 20 73 65 63 6f |.. V i|s a seco|
|00004a10| 6e 64 20 70 61 72 61 6d | 65 74 65 72 20 74 68 61 |nd param|eter tha|
|00004a20| 74 20 53 20 63 61 6e 20 | 72 65 66 65 72 20 74 6f |t S can |refer to|
|00004a30| 2e 20 20 2a 2f 0d 0d 76 | 6f 69 64 0d 77 61 72 6e |. */..v|oid.warn|
|00004a40| 69 6e 67 5f 77 69 74 68 | 5f 64 65 63 6c 20 28 64 |ing_with|_decl (d|
|00004a50| 65 63 6c 2c 20 73 2c 20 | 76 29 0d 20 20 20 20 20 |ecl, s, |v). |
|00004a60| 74 72 65 65 20 64 65 63 | 6c 3b 0d 20 20 20 20 20 |tree dec|l;. |
|00004a70| 63 68 61 72 20 2a 73 3b | 0d 20 20 20 20 20 69 6e |char *s;|. in|
|00004a80| 74 20 76 3b 0d 7b 0d 20 | 20 69 66 20 28 63 6f 75 |t v;.{. | if (cou|
|00004a90| 6e 74 5f 65 72 72 6f 72 | 20 28 31 29 20 3d 3d 20 |nt_error| (1) == |
|00004aa0| 30 29 0d 20 20 20 20 72 | 65 74 75 72 6e 3b 0d 0d |0). r|eturn;..|
|00004ab0| 20 20 72 65 70 6f 72 74 | 5f 65 72 72 6f 72 5f 66 | report|_error_f|
|00004ac0| 75 6e 63 74 69 6f 6e 20 | 28 44 45 43 4c 5f 53 4f |unction |(DECL_SO|
|00004ad0| 55 52 43 45 5f 46 49 4c | 45 20 28 64 65 63 6c 29 |URCE_FIL|E (decl)|
|00004ae0| 29 3b 0d 0d 23 69 66 64 | 65 66 20 4d 50 57 0d 20 |);..#ifd|ef MPW. |
|00004af0| 20 2f 2a 20 50 72 69 6e | 74 20 66 69 6c 65 20 61 | /* Prin|t file a|
|00004b00| 6e 64 20 6c 69 6e 65 20 | 73 6f 20 74 68 61 74 20 |nd line |so that |
|00004b10| 74 68 65 79 27 72 65 20 | 76 61 6c 69 64 20 4d 50 |they're |valid MP|
|00004b20| 57 20 63 6f 6d 6d 61 6e | 64 73 2e 20 2a 2f 0d 20 |W comman|ds. */. |
|00004b30| 20 66 70 72 69 6e 74 66 | 20 28 73 74 64 65 72 72 | fprintf| (stderr|
|00004b40| 2c 20 22 46 69 6c 65 20 | 5c 22 25 73 5c 22 3b 20 |, "File |\"%s\"; |
|00004b50| 4c 69 6e 65 20 25 64 5c | 74 23 20 22 2c 0d 23 65 |Line %d\|t# ",.#e|
|00004b60| 6c 73 65 0d 20 20 66 70 | 72 69 6e 74 66 20 28 73 |lse. fp|rintf (s|
|00004b70| 74 64 65 72 72 2c 20 22 | 25 73 3a 25 64 3a 20 22 |tderr, "|%s:%d: "|
|00004b80| 2c 0d 23 65 6e 64 69 66 | 20 2f 2a 20 4d 50 57 20 |,.#endif| /* MPW |
|00004b90| 2a 2f 0d 09 20 20 20 44 | 45 43 4c 5f 53 4f 55 52 |*/.. D|ECL_SOUR|
|00004ba0| 43 45 5f 46 49 4c 45 20 | 28 64 65 63 6c 29 2c 20 |CE_FILE |(decl), |
|00004bb0| 44 45 43 4c 5f 53 4f 55 | 52 43 45 5f 4c 49 4e 45 |DECL_SOU|RCE_LINE|
|00004bc0| 20 28 64 65 63 6c 29 29 | 3b 0d 0d 20 20 66 70 72 | (decl))|;.. fpr|
|00004bd0| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 77 |intf (st|derr, "w|
|00004be0| 61 72 6e 69 6e 67 3a 20 | 22 29 3b 0d 20 20 69 66 |arning: |");. if|
|00004bf0| 20 28 44 45 43 4c 5f 50 | 52 49 4e 54 5f 4e 41 4d | (DECL_P|RINT_NAM|
|00004c00| 45 20 28 64 65 63 6c 29 | 29 0d 20 20 20 20 66 70 |E (decl)|). fp|
|00004c10| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 73 |rintf (s|tderr, s|
|00004c20| 2c 20 44 45 43 4c 5f 50 | 52 49 4e 54 5f 4e 41 4d |, DECL_P|RINT_NAM|
|00004c30| 45 20 28 64 65 63 6c 29 | 2c 20 76 29 3b 0d 20 20 |E (decl)|, v);. |
|00004c40| 65 6c 73 65 20 69 66 20 | 28 44 45 43 4c 5f 4e 41 |else if |(DECL_NA|
|00004c50| 4d 45 20 28 64 65 63 6c | 29 29 0d 20 20 20 20 66 |ME (decl|)). f|
|00004c60| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00004c70| 73 2c 20 49 44 45 4e 54 | 49 46 49 45 52 5f 50 4f |s, IDENT|IFIER_PO|
|00004c80| 49 4e 54 45 52 20 28 44 | 45 43 4c 5f 4e 41 4d 45 |INTER (D|ECL_NAME|
|00004c90| 20 28 64 65 63 6c 29 29 | 2c 20 76 29 3b 0d 20 20 | (decl))|, v);. |
|00004ca0| 65 6c 73 65 0d 20 20 20 | 20 66 70 72 69 6e 74 66 |else. | fprintf|
|00004cb0| 20 28 73 74 64 65 72 72 | 2c 20 73 2c 20 22 28 28 | (stderr|, s, "((|
|00004cc0| 61 6e 6f 6e 79 6d 6f 75 | 73 29 29 22 2c 20 76 29 |anonymou|s))", v)|
|00004cd0| 3b 0d 20 20 66 70 72 69 | 6e 74 66 20 28 73 74 64 |;. fpri|ntf (std|
|00004ce0| 65 72 72 2c 20 22 5c 6e | 22 29 3b 0d 7d 0d 0d 2f |err, "\n|");.}../|
|00004cf0| 2a 20 41 70 6f 6c 6f 67 | 69 7a 65 20 66 6f 72 20 |* Apolog|ize for |
|00004d00| 6e 6f 74 20 69 6d 70 6c | 65 6d 65 6e 74 69 6e 67 |not impl|ementing|
|00004d10| 20 73 6f 6d 65 20 66 65 | 61 74 75 72 65 2e 0d 20 | some fe|ature.. |
|00004d20| 20 20 53 2c 20 56 2c 20 | 61 6e 64 20 56 32 20 61 | S, V, |and V2 a|
|00004d30| 72 65 20 61 20 73 74 72 | 69 6e 67 20 61 6e 64 20 |re a str|ing and |
|00004d40| 61 72 67 73 20 66 6f 72 | 20 60 70 72 69 6e 74 66 |args for| `printf|
|00004d50| 27 2e 20 20 2a 2f 0d 0d | 76 6f 69 64 0d 73 6f 72 |'. */..|void.sor|
|00004d60| 72 79 20 28 73 2c 20 76 | 2c 20 76 32 29 0d 20 20 |ry (s, v|, v2). |
|00004d70| 20 20 20 63 68 61 72 20 | 2a 73 3b 0d 20 20 20 20 | char |*s;. |
|00004d80| 20 69 6e 74 20 76 2c 20 | 76 32 3b 0d 7b 0d 20 20 | int v, |v2;.{. |
|00004d90| 73 6f 72 72 79 63 6f 75 | 6e 74 2b 2b 3b 0d 20 20 |sorrycou|nt++;. |
|00004da0| 69 66 20 28 69 6e 70 75 | 74 5f 66 69 6c 65 6e 61 |if (inpu|t_filena|
|00004db0| 6d 65 29 0d 23 69 66 64 | 65 66 20 4d 50 57 0d 20 |me).#ifd|ef MPW. |
|00004dc0| 20 20 20 2f 2a 20 50 72 | 69 6e 74 20 66 69 6c 65 | /* Pr|int file|
|00004dd0| 20 61 6e 64 20 6c 69 6e | 65 20 73 6f 20 74 68 61 | and lin|e so tha|
|00004de0| 74 20 74 68 65 79 27 72 | 65 20 76 61 6c 69 64 20 |t they'r|e valid |
|00004df0| 4d 50 57 20 63 6f 6d 6d | 61 6e 64 73 2e 20 2a 2f |MPW comm|ands. */|
|00004e00| 0d 20 20 20 20 66 70 72 | 69 6e 74 66 20 28 73 74 |. fpr|intf (st|
|00004e10| 64 65 72 72 2c 20 22 46 | 69 6c 65 20 5c 22 25 73 |derr, "F|ile \"%s|
|00004e20| 5c 22 3b 20 4c 69 6e 65 | 20 25 64 5c 74 23 20 22 |\"; Line| %d\t# "|
|00004e30| 2c 20 69 6e 70 75 74 5f | 66 69 6c 65 6e 61 6d 65 |, input_|filename|
|00004e40| 2c 20 6c 69 6e 65 6e 6f | 29 3b 0d 23 65 6c 73 65 |, lineno|);.#else|
|00004e50| 0d 20 20 20 20 66 70 72 | 69 6e 74 66 20 28 73 74 |. fpr|intf (st|
|00004e60| 64 65 72 72 2c 20 22 25 | 73 3a 25 64 3a 20 22 2c |derr, "%|s:%d: ",|
|00004e70| 20 69 6e 70 75 74 5f 66 | 69 6c 65 6e 61 6d 65 2c | input_f|ilename,|
|00004e80| 20 6c 69 6e 65 6e 6f 29 | 3b 0d 23 65 6e 64 69 66 | lineno)|;.#endif|
|00004e90| 20 2f 2a 20 4d 50 57 20 | 2a 2f 0d 20 20 65 6c 73 | /* MPW |*/. els|
|00004ea0| 65 0d 20 20 20 20 66 70 | 72 69 6e 74 66 20 28 73 |e. fp|rintf (s|
|00004eb0| 74 64 65 72 72 2c 20 22 | 25 73 3a 20 22 2c 20 70 |tderr, "|%s: ", p|
|00004ec0| 72 6f 67 6e 61 6d 65 29 | 3b 0d 0d 20 20 66 70 72 |rogname)|;.. fpr|
|00004ed0| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 73 |intf (st|derr, "s|
|00004ee0| 6f 72 72 79 2c 20 6e 6f | 74 20 69 6d 70 6c 65 6d |orry, no|t implem|
|00004ef0| 65 6e 74 65 64 3a 20 22 | 29 3b 0d 20 20 66 70 72 |ented: "|);. fpr|
|00004f00| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 73 2c |intf (st|derr, s,|
|00004f10| 20 76 2c 20 76 32 29 3b | 0d 20 20 66 70 72 69 6e | v, v2);|. fprin|
|00004f20| 74 66 20 28 73 74 64 65 | 72 72 2c 20 22 5c 6e 22 |tf (stde|rr, "\n"|
|00004f30| 29 3b 0d 7d 0d 0d 2f 2a | 20 41 70 6f 6c 6f 67 69 |);.}../*| Apologi|
|00004f40| 7a 65 20 66 6f 72 20 6e | 6f 74 20 69 6d 70 6c 65 |ze for n|ot imple|
|00004f50| 6d 65 6e 74 69 6e 67 20 | 73 6f 6d 65 20 66 65 61 |menting |some fea|
|00004f60| 74 75 72 65 2c 20 74 68 | 65 6e 20 71 75 69 74 2e |ture, th|en quit.|
|00004f70| 0d 20 20 20 53 2c 20 56 | 2c 20 61 6e 64 20 56 32 |. S, V|, and V2|
|00004f80| 20 61 72 65 20 61 20 73 | 74 72 69 6e 67 20 61 6e | are a s|tring an|
|00004f90| 64 20 61 72 67 73 20 66 | 6f 72 20 60 70 72 69 6e |d args f|or `prin|
|00004fa0| 74 66 27 2e 20 20 2a 2f | 0d 0d 76 6f 69 64 0d 72 |tf'. */|..void.r|
|00004fb0| 65 61 6c 6c 79 5f 73 6f | 72 72 79 20 28 73 2c 20 |eally_so|rry (s, |
|00004fc0| 76 2c 20 76 32 29 0d 20 | 20 20 20 20 63 68 61 72 |v, v2). | char|
|00004fd0| 20 2a 73 3b 0d 20 20 20 | 20 20 69 6e 74 20 76 2c | *s;. | int v,|
|00004fe0| 20 76 32 3b 0d 7b 0d 20 | 20 69 66 20 28 69 6e 70 | v2;.{. | if (inp|
|00004ff0| 75 74 5f 66 69 6c 65 6e | 61 6d 65 29 0d 23 69 66 |ut_filen|ame).#if|
|00005000| 64 65 66 20 4d 50 57 0d | 20 20 20 20 2f 2a 20 50 |def MPW.| /* P|
|00005010| 72 69 6e 74 20 66 69 6c | 65 20 61 6e 64 20 6c 69 |rint fil|e and li|
|00005020| 6e 65 20 73 6f 20 74 68 | 61 74 20 74 68 65 79 27 |ne so th|at they'|
|00005030| 72 65 20 76 61 6c 69 64 | 20 4d 50 57 20 63 6f 6d |re valid| MPW com|
|00005040| 6d 61 6e 64 73 2e 20 2a | 2f 0d 20 20 20 20 66 70 |mands. *|/. fp|
|00005050| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|00005060| 46 69 6c 65 20 5c 22 25 | 73 5c 22 3b 20 4c 69 6e |File \"%|s\"; Lin|
|00005070| 65 20 25 64 5c 74 23 20 | 22 2c 20 69 6e 70 75 74 |e %d\t# |", input|
|00005080| 5f 66 69 6c 65 6e 61 6d | 65 2c 20 6c 69 6e 65 6e |_filenam|e, linen|
|00005090| 6f 29 3b 0d 23 65 6c 73 | 65 0d 20 20 20 20 66 70 |o);.#els|e. fp|
|000050a0| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|000050b0| 25 73 3a 25 64 3a 20 22 | 2c 20 69 6e 70 75 74 5f |%s:%d: "|, input_|
|000050c0| 66 69 6c 65 6e 61 6d 65 | 2c 20 6c 69 6e 65 6e 6f |filename|, lineno|
|000050d0| 29 3b 0d 23 65 6e 64 69 | 66 20 2f 2a 20 4d 50 57 |);.#endi|f /* MPW|
|000050e0| 20 2a 2f 0d 20 20 65 6c | 73 65 0d 20 20 20 20 66 | */. el|se. f|
|000050f0| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00005100| 22 63 2b 2b 3a 20 22 29 | 3b 0d 0d 20 20 66 70 72 |"c++: ")|;.. fpr|
|00005110| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 73 |intf (st|derr, "s|
|00005120| 6f 72 72 79 2c 20 6e 6f | 74 20 69 6d 70 6c 65 6d |orry, no|t implem|
|00005130| 65 6e 74 65 64 3a 20 22 | 29 3b 0d 20 20 66 70 72 |ented: "|);. fpr|
|00005140| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 73 2c |intf (st|derr, s,|
|00005150| 20 76 2c 20 76 32 29 3b | 0d 20 20 66 61 74 61 6c | v, v2);|. fatal|
|00005160| 20 28 22 20 28 66 61 74 | 61 6c 29 5c 6e 22 29 3b | (" (fat|al)\n");|
|00005170| 0d 7d 0d 0c 0d 2f 2a 20 | 4d 6f 72 65 20 27 66 72 |.}.../* |More 'fr|
|00005180| 69 65 6e 64 6c 79 27 20 | 61 62 6f 72 74 20 74 68 |iendly' |abort th|
|00005190| 61 74 20 70 72 69 6e 74 | 73 20 74 68 65 20 6c 69 |at print|s the li|
|000051a0| 6e 65 20 61 6e 64 20 66 | 69 6c 65 2e 0d 20 20 20 |ne and f|ile.. |
|000051b0| 63 6f 6e 66 69 67 2e 68 | 20 63 61 6e 20 23 64 65 |config.h| can #de|
|000051c0| 66 69 6e 65 20 61 62 6f | 72 74 20 66 61 6e 63 79 |fine abo|rt fancy|
|000051d0| 5f 61 62 6f 72 74 20 69 | 66 20 79 6f 75 20 6c 69 |_abort i|f you li|
|000051e0| 6b 65 20 74 68 61 74 20 | 73 6f 72 74 20 6f 66 20 |ke that |sort of |
|000051f0| 74 68 69 6e 67 2e 20 20 | 2a 2f 0d 0d 76 6f 69 64 |thing. |*/..void|
|00005200| 0d 66 61 6e 63 79 5f 61 | 62 6f 72 74 20 28 29 0d |.fancy_a|bort ().|
|00005210| 7b 0d 23 69 66 64 65 66 | 20 4d 50 57 0d 20 20 2f |{.#ifdef| MPW. /|
|00005220| 2a 20 4d 61 6b 65 20 73 | 75 72 65 20 6e 6f 20 6f |* Make s|ure no o|
|00005230| 75 74 70 75 74 20 73 74 | 69 6c 6c 20 62 75 66 66 |utput st|ill buff|
|00005240| 65 72 65 64 20 75 70 2c | 20 74 68 65 6e 20 7a 61 |ered up,| then za|
|00005250| 70 20 69 6e 74 6f 20 4d | 61 63 73 62 75 67 2e 20 |p into M|acsbug. |
|00005260| 2a 2f 0d 20 20 70 72 69 | 6e 74 66 28 22 41 63 6b |*/. pri|ntf("Ack|
|00005270| 21 5c 6e 22 29 3b 0d 20 | 20 66 66 6c 75 73 68 28 |!\n");. | fflush(|
|00005280| 73 74 64 6f 75 74 29 3b | 0d 20 20 66 66 6c 75 73 |stdout);|. fflus|
|00005290| 68 28 73 74 64 65 72 72 | 29 3b 0d 20 20 44 65 62 |h(stderr|);. Deb|
|000052a0| 75 67 67 65 72 28 29 3b | 0d 20 20 2f 2a 20 22 67 |ugger();|. /* "g|
|000052b0| 22 20 69 6e 20 4d 61 63 | 73 62 75 67 20 77 69 6c |" in Mac|sbug wil|
|000052c0| 6c 20 74 68 65 6e 20 63 | 61 75 73 65 20 61 20 72 |l then c|ause a r|
|000052d0| 65 67 75 6c 61 72 20 65 | 72 72 6f 72 20 65 78 69 |egular e|rror exi|
|000052e0| 74 2e 20 2a 2f 0d 20 20 | 65 78 69 74 20 28 46 41 |t. */. |exit (FA|
|000052f0| 54 41 4c 5f 45 58 49 54 | 5f 43 4f 44 45 29 3b 0d |TAL_EXIT|_CODE);.|
|00005300| 23 65 6c 73 65 0d 20 20 | 66 61 74 61 6c 20 28 22 |#else. |fatal ("|
|00005310| 49 6e 74 65 72 6e 61 6c | 20 67 63 63 20 61 62 6f |Internal| gcc abo|
|00005320| 72 74 2e 22 29 3b 0d 23 | 65 6e 64 69 66 20 2f 2a |rt.");.#|endif /*|
|00005330| 20 4d 50 57 20 2a 2f 0d | 7d 0d 0d 2f 2a 20 57 68 | MPW */.|}../* Wh|
|00005340| 65 6e 20 60 6d 61 6c 6c | 6f 63 2e 63 27 20 69 73 |en `mall|oc.c' is|
|00005350| 20 63 6f 6d 70 69 6c 65 | 64 20 77 69 74 68 20 60 | compile|d with `|
|00005360| 72 63 68 65 63 6b 27 20 | 64 65 66 69 6e 65 64 2c |rcheck' |defined,|
|00005370| 0d 20 20 20 69 74 20 63 | 61 6c 6c 73 20 74 68 69 |. it c|alls thi|
|00005380| 73 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 72 65 |s functi|on to re|
|00005390| 70 6f 72 74 20 63 6c 6f | 62 62 65 72 61 67 65 2e |port clo|bberage.|
|000053a0| 20 20 2a 2f 0d 0d 76 6f | 69 64 0d 62 6f 74 63 68 | */..vo|id.botch|
|000053b0| 20 28 73 29 0d 7b 0d 20 | 20 61 62 6f 72 74 20 28 | (s).{. | abort (|
|000053c0| 29 3b 0d 7d 0d 0d 2f 2a | 20 53 61 6d 65 20 61 73 |);.}../*| Same as|
|000053d0| 20 60 6d 61 6c 6c 6f 63 | 27 20 62 75 74 20 72 65 | `malloc|' but re|
|000053e0| 70 6f 72 74 20 65 72 72 | 6f 72 20 69 66 20 6e 6f |port err|or if no|
|000053f0| 20 6d 65 6d 6f 72 79 20 | 61 76 61 69 6c 61 62 6c | memory |availabl|
|00005400| 65 2e 20 20 2a 2f 0d 0d | 23 69 66 64 65 66 20 4d |e. */..|#ifdef M|
|00005410| 50 57 0d 2f 2a 20 53 6f | 6d 65 20 67 6c 6f 62 61 |PW./* So|me globa|
|00005420| 6c 20 76 61 72 73 20 66 | 6f 72 20 6d 65 6d 6f 72 |l vars f|or memor|
|00005430| 79 20 75 73 61 67 65 20 | 73 74 61 74 69 73 74 69 |y usage |statisti|
|00005440| 63 73 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 2e 20 2a |cs colle|ction. *|
|00005450| 2f 0d 69 6e 74 20 74 6f | 74 6d 61 6c 6c 6f 63 20 |/.int to|tmalloc |
|00005460| 3d 20 30 3b 0d 65 78 74 | 65 72 6e 20 69 6e 74 20 |= 0;.ext|ern int |
|00005470| 74 6f 74 61 6c 6c 6f 63 | 61 3b 0d 69 6e 74 20 74 |totalloc|a;.int t|
|00005480| 6f 74 72 65 61 6c 6c 6f | 63 20 3d 20 30 3b 0d 69 |otreallo|c = 0;.i|
|00005490| 6e 74 20 74 6f 74 66 72 | 65 65 20 3d 20 30 3b 0d |nt totfr|ee = 0;.|
|000054a0| 23 65 6e 64 69 66 20 2f | 2a 20 4d 50 57 20 2a 2f |#endif /|* MPW */|
|000054b0| 0d 0d 69 6e 74 0d 78 6d | 61 6c 6c 6f 63 20 28 73 |..int.xm|alloc (s|
|000054c0| 69 7a 65 29 0d 20 20 20 | 20 20 75 6e 73 69 67 6e |ize). | unsign|
|000054d0| 65 64 20 73 69 7a 65 3b | 0d 7b 0d 20 20 72 65 67 |ed size;|.{. reg|
|000054e0| 69 73 74 65 72 20 69 6e | 74 20 76 61 6c 75 65 20 |ister in|t value |
|000054f0| 3d 20 28 69 6e 74 29 20 | 6d 61 6c 6c 6f 63 20 28 |= (int) |malloc (|
|00005500| 73 69 7a 65 29 3b 0d 23 | 69 66 64 65 66 20 4d 50 |size);.#|ifdef MP|
|00005510| 57 0d 20 20 2f 2a 20 43 | 6f 75 6e 74 20 74 68 69 |W. /* C|ount thi|
|00005520| 73 20 61 67 61 69 6e 73 | 74 20 74 68 65 20 74 6f |s agains|t the to|
|00005530| 74 61 6c 20 6d 61 6c 6c | 6f 63 20 75 73 61 67 65 |tal mall|oc usage|
|00005540| 2e 20 2a 2f 0d 20 20 74 | 6f 74 6d 61 6c 6c 6f 63 |. */. t|otmalloc|
|00005550| 20 2b 3d 20 73 69 7a 65 | 3b 0d 23 65 6e 64 69 66 | += size|;.#endif|
|00005560| 20 2f 2a 20 4d 50 57 20 | 2a 2f 0d 20 20 69 66 20 | /* MPW |*/. if |
|00005570| 28 76 61 6c 75 65 20 3d | 3d 20 30 29 0d 23 69 66 |(value =|= 0).#if|
|00005580| 64 65 66 20 4d 50 57 0d | 20 20 20 20 2f 2a 20 45 |def MPW.| /* E|
|00005590| 64 69 74 6f 72 69 61 6c | 69 7a 65 2e 20 2a 2f 0d |ditorial|ize. */.|
|000055a0| 20 20 20 20 66 61 74 61 | 6c 20 28 22 56 69 72 74 | fata|l ("Virt|
|000055b0| 75 61 6c 20 28 68 61 68 | 21 29 20 6d 65 6d 6f 72 |ual (hah|!) memor|
|000055c0| 79 20 65 78 68 61 75 73 | 74 65 64 2e 22 29 3b 0d |y exhaus|ted.");.|
|000055d0| 23 65 6c 73 65 0d 20 20 | 20 20 66 61 74 61 6c 20 |#else. | fatal |
|000055e0| 28 22 56 69 72 74 75 61 | 6c 20 6d 65 6d 6f 72 79 |("Virtua|l memory|
|000055f0| 20 65 78 68 61 75 73 74 | 65 64 2e 22 29 3b 0d 23 | exhaust|ed.");.#|
|00005600| 65 6e 64 69 66 20 2f 2a | 20 4d 50 57 20 2a 2f 0d |endif /*| MPW */.|
|00005610| 20 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 3b 0d | return| value;.|
|00005620| 7d 0d 0d 2f 2a 20 53 61 | 6d 65 20 61 73 20 60 72 |}../* Sa|me as `r|
|00005630| 65 61 6c 6c 6f 63 27 20 | 62 75 74 20 72 65 70 6f |ealloc' |but repo|
|00005640| 72 74 20 65 72 72 6f 72 | 20 69 66 20 6e 6f 20 6d |rt error| if no m|
|00005650| 65 6d 6f 72 79 20 61 76 | 61 69 6c 61 62 6c 65 2e |emory av|ailable.|
|00005660| 20 20 2a 2f 0d 0d 69 6e | 74 0d 78 72 65 61 6c 6c | */..in|t.xreall|
|00005670| 6f 63 20 28 70 74 72 2c | 20 73 69 7a 65 29 0d 20 |oc (ptr,| size). |
|00005680| 20 20 20 20 63 68 61 72 | 20 2a 70 74 72 3b 0d 20 | char| *ptr;. |
|00005690| 20 20 20 20 69 6e 74 20 | 73 69 7a 65 3b 0d 7b 0d | int |size;.{.|
|000056a0| 20 20 69 6e 74 20 72 65 | 73 75 6c 74 20 3d 20 72 | int re|sult = r|
|000056b0| 65 61 6c 6c 6f 63 20 28 | 70 74 72 2c 20 73 69 7a |ealloc (|ptr, siz|
|000056c0| 65 29 3b 0d 23 69 66 64 | 65 66 20 4d 50 57 0d 20 |e);.#ifd|ef MPW. |
|000056d0| 20 2f 2a 20 43 6f 75 6e | 74 20 74 68 69 73 20 61 | /* Coun|t this a|
|000056e0| 67 61 69 6e 73 74 20 74 | 68 65 20 74 6f 74 61 6c |gainst t|he total|
|000056f0| 20 72 65 61 6c 6c 6f 63 | 20 75 73 61 67 65 2e 20 | realloc| usage. |
|00005700| 2a 2f 0d 20 20 74 6f 74 | 72 65 61 6c 6c 6f 63 20 |*/. tot|realloc |
|00005710| 2b 3d 20 73 69 7a 65 3b | 0d 23 65 6e 64 69 66 20 |+= size;|.#endif |
|00005720| 2f 2a 20 4d 50 57 20 2a | 2f 0d 20 20 69 66 20 28 |/* MPW *|/. if (|
|00005730| 21 72 65 73 75 6c 74 29 | 0d 23 69 66 64 65 66 20 |!result)|.#ifdef |
|00005740| 4d 50 57 0d 20 20 20 20 | 2f 2a 20 45 64 69 74 6f |MPW. |/* Edito|
|00005750| 72 69 61 6c 69 7a 65 2e | 20 2a 2f 0d 20 20 20 20 |rialize.| */. |
|00005760| 66 61 74 61 6c 20 28 22 | 56 69 72 74 75 61 6c 20 |fatal ("|Virtual |
|00005770| 28 68 61 68 21 29 20 6d | 65 6d 6f 72 79 20 65 78 |(hah!) m|emory ex|
|00005780| 68 61 75 73 74 65 64 2e | 22 29 3b 0d 23 65 6c 73 |hausted.|");.#els|
|00005790| 65 0d 20 20 20 20 66 61 | 74 61 6c 20 28 22 56 69 |e. fa|tal ("Vi|
|000057a0| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 65 78 68 |rtual me|mory exh|
|000057b0| 61 75 73 74 65 64 2e 22 | 29 3b 0d 23 65 6e 64 69 |austed."|);.#endi|
|000057c0| 66 20 2f 2a 20 4d 50 57 | 20 2a 2f 0d 20 20 72 65 |f /* MPW| */. re|
|000057d0| 74 75 72 6e 20 72 65 73 | 75 6c 74 3b 0d 7d 0d 0c |turn res|ult;.}..|
|000057e0| 0d 2f 2a 20 52 65 74 75 | 72 6e 20 74 68 65 20 6c |./* Retu|rn the l|
|000057f0| 6f 67 61 72 69 74 68 6d | 20 6f 66 20 58 2c 20 62 |ogarithm| of X, b|
|00005800| 61 73 65 20 32 2c 20 63 | 6f 6e 73 69 64 65 72 69 |ase 2, c|onsideri|
|00005810| 6e 67 20 58 20 75 6e 73 | 69 67 6e 65 64 2c 0d 20 |ng X uns|igned,. |
|00005820| 20 20 69 66 20 58 20 69 | 73 20 61 20 70 6f 77 65 | if X i|s a powe|
|00005830| 72 20 6f 66 20 32 2e 20 | 20 4f 74 68 65 72 77 69 |r of 2. | Otherwi|
|00005840| 73 65 2c 20 72 65 74 75 | 72 6e 73 20 2d 31 2e 20 |se, retu|rns -1. |
|00005850| 20 2a 2f 0d 0d 69 6e 74 | 0d 65 78 61 63 74 5f 6c | */..int|.exact_l|
|00005860| 6f 67 32 20 28 78 29 0d | 20 20 20 20 20 72 65 67 |og2 (x).| reg|
|00005870| 69 73 74 65 72 20 75 6e | 73 69 67 6e 65 64 20 69 |ister un|signed i|
|00005880| 6e 74 20 78 3b 0d 7b 0d | 20 20 72 65 67 69 73 74 |nt x;.{.| regist|
|00005890| 65 72 20 69 6e 74 20 6c | 6f 67 20 3d 20 30 3b 0d |er int l|og = 0;.|
|000058a0| 20 20 66 6f 72 20 28 6c | 6f 67 20 3d 20 30 3b 20 | for (l|og = 0; |
|000058b0| 6c 6f 67 20 3c 20 48 4f | 53 54 5f 42 49 54 53 5f |log < HO|ST_BITS_|
|000058c0| 50 45 52 5f 49 4e 54 3b | 20 6c 6f 67 2b 2b 29 0d |PER_INT;| log++).|
|000058d0| 20 20 20 20 69 66 20 28 | 78 20 3d 3d 20 28 31 20 | if (|x == (1 |
|000058e0| 3c 3c 20 6c 6f 67 29 29 | 0d 20 20 20 20 20 20 72 |<< log))|. r|
|000058f0| 65 74 75 72 6e 20 6c 6f | 67 3b 0d 20 20 72 65 74 |eturn lo|g;. ret|
|00005900| 75 72 6e 20 2d 31 3b 0d | 7d 0d 0d 2f 2a 20 47 69 |urn -1;.|}../* Gi|
|00005910| 76 65 6e 20 58 2c 20 61 | 6e 20 75 6e 73 69 67 6e |ven X, a|n unsign|
|00005920| 65 64 20 6e 75 6d 62 65 | 72 2c 20 72 65 74 75 72 |ed numbe|r, retur|
|00005930| 6e 20 74 68 65 20 6c 61 | 72 67 65 73 74 20 69 6e |n the la|rgest in|
|00005940| 74 20 59 20 73 75 63 68 | 20 74 68 61 74 20 32 2a |t Y such| that 2*|
|00005950| 2a 59 20 3c 3d 20 58 2e | 0d 20 20 20 49 66 20 58 |*Y <= X.|. If X|
|00005960| 20 69 73 20 30 2c 20 72 | 65 74 75 72 6e 20 2d 31 | is 0, r|eturn -1|
|00005970| 2e 20 20 2a 2f 0d 0d 69 | 6e 74 0d 66 6c 6f 6f 72 |. */..i|nt.floor|
|00005980| 5f 6c 6f 67 32 20 28 78 | 29 0d 20 20 20 20 20 72 |_log2 (x|). r|
|00005990| 65 67 69 73 74 65 72 20 | 75 6e 73 69 67 6e 65 64 |egister |unsigned|
|000059a0| 20 69 6e 74 20 78 3b 0d | 7b 0d 20 20 72 65 67 69 | int x;.|{. regi|
|000059b0| 73 74 65 72 20 69 6e 74 | 20 6c 6f 67 20 3d 20 30 |ster int| log = 0|
|000059c0| 3b 0d 20 20 66 6f 72 20 | 28 6c 6f 67 20 3d 20 30 |;. for |(log = 0|
|000059d0| 3b 20 6c 6f 67 20 3c 20 | 48 4f 53 54 5f 42 49 54 |; log < |HOST_BIT|
|000059e0| 53 5f 50 45 52 5f 49 4e | 54 3b 20 6c 6f 67 2b 2b |S_PER_IN|T; log++|
|000059f0| 29 0d 20 20 20 20 69 66 | 20 28 28 78 20 26 20 28 |). if| ((x & (|
|00005a00| 28 2d 31 29 20 3c 3c 20 | 6c 6f 67 29 29 20 3d 3d |(-1) << |log)) ==|
|00005a10| 20 30 29 0d 20 20 20 20 | 20 20 72 65 74 75 72 6e | 0). | return|
|00005a20| 20 6c 6f 67 20 2d 20 31 | 3b 0d 20 20 72 65 74 75 | log - 1|;. retu|
|00005a30| 72 6e 20 48 4f 53 54 5f | 42 49 54 53 5f 50 45 52 |rn HOST_|BITS_PER|
|00005a40| 5f 49 4e 54 20 2d 20 31 | 3b 0d 7d 0d 0d 69 6e 74 |_INT - 1|;.}..int|
|00005a50| 20 66 6c 6f 61 74 5f 68 | 61 6e 64 6c 65 64 3b 0d | float_h|andled;.|
|00005a60| 6a 6d 70 5f 62 75 66 20 | 66 6c 6f 61 74 5f 68 61 |jmp_buf |float_ha|
|00005a70| 6e 64 6c 65 72 3b 0d 0d | 2f 2a 20 53 70 65 63 69 |ndler;..|/* Speci|
|00005a80| 66 79 20 77 68 65 72 65 | 20 74 6f 20 6c 6f 6e 67 |fy where| to long|
|00005a90| 6a 6d 70 20 74 6f 20 77 | 68 65 6e 20 61 20 66 6c |jmp to w|hen a fl|
|00005aa0| 6f 61 74 69 6e 67 20 61 | 72 69 74 68 6d 65 74 69 |oating a|rithmeti|
|00005ab0| 63 20 65 72 72 6f 72 20 | 68 61 70 70 65 6e 73 2e |c error |happens.|
|00005ac0| 0d 20 20 20 49 66 20 48 | 41 4e 44 4c 45 52 20 69 |. If H|ANDLER i|
|00005ad0| 73 20 30 2c 20 69 74 20 | 6d 65 61 6e 73 20 64 6f |s 0, it |means do|
|00005ae0| 6e 27 74 20 68 61 6e 64 | 6c 65 20 74 68 65 20 65 |n't hand|le the e|
|00005af0| 72 72 6f 72 73 20 61 6e | 79 20 6d 6f 72 65 2e 20 |rrors an|y more. |
|00005b00| 20 2a 2f 0d 0d 76 6f 69 | 64 0d 73 65 74 5f 66 6c | */..voi|d.set_fl|
|00005b10| 6f 61 74 5f 68 61 6e 64 | 6c 65 72 20 28 68 61 6e |oat_hand|ler (han|
|00005b20| 64 6c 65 72 29 0d 20 20 | 20 20 20 6a 6d 70 5f 62 |dler). | jmp_b|
|00005b30| 75 66 20 68 61 6e 64 6c | 65 72 3b 0d 7b 0d 20 20 |uf handl|er;.{. |
|00005b40| 66 6c 6f 61 74 5f 68 61 | 6e 64 6c 65 64 20 3d 20 |float_ha|ndled = |
|00005b50| 28 68 61 6e 64 6c 65 72 | 20 21 3d 20 30 29 3b 0d |(handler| != 0);.|
|00005b60| 20 20 69 66 20 28 68 61 | 6e 64 6c 65 72 29 0d 20 | if (ha|ndler). |
|00005b70| 20 20 20 62 63 6f 70 79 | 20 28 68 61 6e 64 6c 65 | bcopy| (handle|
|00005b80| 72 2c 20 66 6c 6f 61 74 | 5f 68 61 6e 64 6c 65 72 |r, float|_handler|
|00005b90| 2c 20 73 69 7a 65 6f 66 | 20 28 66 6c 6f 61 74 5f |, sizeof| (float_|
|00005ba0| 68 61 6e 64 6c 65 72 29 | 29 3b 0d 7d 0d 0d 2f 2a |handler)|);.}../*|
|00005bb0| 20 53 69 67 6e 61 6c 73 | 20 61 63 74 75 61 6c 6c | Signals| actuall|
|00005bc0| 79 20 63 6f 6d 65 20 68 | 65 72 65 2e 20 20 2a 2f |y come h|ere. */|
|00005bd0| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 0d 66 6c |..static| void.fl|
|00005be0| 6f 61 74 5f 73 69 67 6e | 61 6c 20 28 29 0d 7b 0d |oat_sign|al ().{.|
|00005bf0| 20 20 69 66 20 28 66 6c | 6f 61 74 5f 68 61 6e 64 | if (fl|oat_hand|
|00005c00| 6c 65 64 20 3d 3d 20 30 | 29 0d 20 20 20 20 61 62 |led == 0|). ab|
|00005c10| 6f 72 74 20 28 29 3b 0d | 20 20 66 6c 6f 61 74 5f |ort ();.| float_|
|00005c20| 68 61 6e 64 6c 65 64 20 | 3d 20 30 3b 0d 20 20 6c |handled |= 0;. l|
|00005c30| 6f 6e 67 6a 6d 70 20 28 | 66 6c 6f 61 74 5f 68 61 |ongjmp (|float_ha|
|00005c40| 6e 64 6c 65 72 2c 20 31 | 29 3b 0d 7d 0d 0d 2f 2a |ndler, 1|);.}../*|
|00005c50| 20 48 61 6e 64 6c 65 72 | 20 66 6f 72 20 53 49 47 | Handler| for SIG|
|00005c60| 50 49 50 45 2e 20 20 2a | 2f 0d 0d 73 74 61 74 69 |PIPE. *|/..stati|
|00005c70| 63 20 76 6f 69 64 0d 70 | 69 70 65 5f 63 6c 6f 73 |c void.p|ipe_clos|
|00005c80| 65 64 20 28 29 0d 7b 0d | 20 20 66 61 74 61 6c 20 |ed ().{.| fatal |
|00005c90| 28 22 6f 75 74 70 75 74 | 20 70 69 70 65 20 68 61 |("output| pipe ha|
|00005ca0| 73 20 62 65 65 6e 20 63 | 6c 6f 73 65 64 22 29 3b |s been c|losed");|
|00005cb0| 0d 7d 0d 0c 0d 2f 2a 20 | 43 6f 6d 70 69 6c 65 20 |.}.../* |Compile |
|00005cc0| 61 6e 20 65 6e 74 69 72 | 65 20 66 69 6c 65 20 6f |an entir|e file o|
|00005cd0| 66 20 6f 75 74 70 75 74 | 20 66 72 6f 6d 20 63 70 |f output| from cp|
|00005ce0| 70 2c 20 6e 61 6d 65 64 | 20 4e 41 4d 45 2e 0d 20 |p, named| NAME.. |
|00005cf0| 20 20 57 72 69 74 65 20 | 61 20 66 69 6c 65 20 6f | Write |a file o|
|00005d00| 66 20 61 73 73 65 6d 62 | 6c 79 20 6f 75 74 70 75 |f assemb|ly outpu|
|00005d10| 74 20 61 6e 64 20 76 61 | 72 69 6f 75 73 20 64 65 |t and va|rious de|
|00005d20| 62 75 67 67 69 6e 67 20 | 64 75 6d 70 73 2e 20 20 |bugging |dumps. |
|00005d30| 2a 2f 0d 0d 73 74 61 74 | 69 63 20 76 6f 69 64 0d |*/..stat|ic void.|
|00005d40| 63 6f 6d 70 69 6c 65 5f | 66 69 6c 65 20 28 6e 61 |compile_|file (na|
|00005d50| 6d 65 29 0d 20 20 20 20 | 20 63 68 61 72 20 2a 6e |me). | char *n|
|00005d60| 61 6d 65 3b 0d 7b 0d 20 | 20 74 72 65 65 20 67 6c |ame;.{. | tree gl|
|00005d70| 6f 62 61 6c 73 3b 0d 20 | 20 69 6e 74 20 73 74 61 |obals;. | int sta|
|00005d80| 72 74 5f 74 69 6d 65 3b | 0d 20 20 69 6e 74 20 64 |rt_time;|. int d|
|00005d90| 75 6d 70 5f 62 61 73 65 | 5f 6e 61 6d 65 5f 6c 65 |ump_base|_name_le|
|00005da0| 6e 67 74 68 3b 0d 0d 20 | 20 69 6e 74 20 6e 61 6d |ngth;.. | int nam|
|00005db0| 65 5f 73 70 65 63 69 66 | 69 65 64 20 3d 20 6e 61 |e_specif|ied = na|
|00005dc0| 6d 65 20 21 3d 20 30 3b | 0d 0d 20 20 69 66 20 28 |me != 0;|.. if (|
|00005dd0| 64 75 6d 70 5f 62 61 73 | 65 5f 6e 61 6d 65 20 3d |dump_bas|e_name =|
|00005de0| 3d 20 30 29 0d 20 20 20 | 20 64 75 6d 70 5f 62 61 |= 0). | dump_ba|
|00005df0| 73 65 5f 6e 61 6d 65 20 | 3d 20 6e 61 6d 65 20 3f |se_name |= name ?|
|00005e00| 20 6e 61 6d 65 20 3a 20 | 22 67 63 63 64 75 6d 70 | name : |"gccdump|
|00005e10| 22 3b 0d 20 20 64 75 6d | 70 5f 62 61 73 65 5f 6e |";. dum|p_base_n|
|00005e20| 61 6d 65 5f 6c 65 6e 67 | 74 68 20 3d 20 73 74 72 |ame_leng|th = str|
|00005e30| 6c 65 6e 20 28 64 75 6d | 70 5f 62 61 73 65 5f 6e |len (dum|p_base_n|
|00005e40| 61 6d 65 29 3b 0d 0d 20 | 20 70 61 72 73 65 5f 74 |ame);.. | parse_t|
|00005e50| 69 6d 65 20 3d 20 30 3b | 0d 20 20 76 61 72 63 6f |ime = 0;|. varco|
|00005e60| 6e 73 74 5f 74 69 6d 65 | 20 3d 20 30 3b 0d 20 20 |nst_time| = 0;. |
|00005e70| 69 6e 74 65 67 72 61 74 | 69 6f 6e 5f 74 69 6d 65 |integrat|ion_time|
|00005e80| 20 3d 20 30 3b 0d 20 20 | 6a 75 6d 70 5f 74 69 6d | = 0;. |jump_tim|
|00005e90| 65 20 3d 20 30 3b 0d 20 | 20 63 73 65 5f 74 69 6d |e = 0;. | cse_tim|
|00005ea0| 65 20 3d 20 30 3b 0d 20 | 20 6c 6f 6f 70 5f 74 69 |e = 0;. | loop_ti|
|00005eb0| 6d 65 20 3d 20 30 3b 0d | 20 20 66 6c 6f 77 5f 74 |me = 0;.| flow_t|
|00005ec0| 69 6d 65 20 3d 20 30 3b | 0d 20 20 63 6f 6d 62 69 |ime = 0;|. combi|
|00005ed0| 6e 65 5f 74 69 6d 65 20 | 3d 20 30 3b 0d 20 20 6c |ne_time |= 0;. l|
|00005ee0| 6f 63 61 6c 5f 61 6c 6c | 6f 63 5f 74 69 6d 65 20 |ocal_all|oc_time |
|00005ef0| 3d 20 30 3b 0d 20 20 67 | 6c 6f 62 61 6c 5f 61 6c |= 0;. g|lobal_al|
|00005f00| 6c 6f 63 5f 74 69 6d 65 | 20 3d 20 30 3b 0d 20 20 |loc_time| = 0;. |
|00005f10| 64 62 72 5f 73 63 68 65 | 64 5f 74 69 6d 65 20 3d |dbr_sche|d_time =|
|00005f20| 20 30 3b 0d 20 20 66 69 | 6e 61 6c 5f 74 69 6d 65 | 0;. fi|nal_time|
|00005f30| 20 3d 20 30 3b 0d 20 20 | 73 79 6d 6f 75 74 5f 74 | = 0;. |symout_t|
|00005f40| 69 6d 65 20 3d 20 30 3b | 0d 20 20 64 75 6d 70 5f |ime = 0;|. dump_|
|00005f50| 74 69 6d 65 20 3d 20 30 | 3b 0d 0d 20 20 2f 2a 20 |time = 0|;.. /* |
|00005f60| 4f 70 65 6e 20 69 6e 70 | 75 74 20 66 69 6c 65 2e |Open inp|ut file.|
|00005f70| 20 20 2a 2f 0d 0d 20 20 | 69 66 20 28 6e 61 6d 65 | */.. |if (name|
|00005f80| 20 3d 3d 20 30 20 7c 7c | 20 21 73 74 72 63 6d 70 | == 0 ||| !strcmp|
|00005f90| 20 28 6e 61 6d 65 2c 20 | 22 2d 22 29 29 0d 20 20 | (name, |"-")). |
|00005fa0| 20 20 7b 0d 20 20 20 20 | 20 20 66 69 6e 70 75 74 | {. | finput|
|00005fb0| 20 3d 20 73 74 64 69 6e | 3b 0d 20 20 20 20 20 20 | = stdin|;. |
|00005fc0| 6e 61 6d 65 20 3d 20 22 | 73 74 64 69 6e 22 3b 0d |name = "|stdin";.|
|00005fd0| 20 20 20 20 7d 0d 20 20 | 65 6c 73 65 0d 20 20 20 | }. |else. |
|00005fe0| 20 66 69 6e 70 75 74 20 | 3d 20 66 6f 70 65 6e 20 | finput |= fopen |
|00005ff0| 28 6e 61 6d 65 2c 20 22 | 72 22 29 3b 0d 20 20 69 |(name, "|r");. i|
|00006000| 66 20 28 66 69 6e 70 75 | 74 20 3d 3d 20 30 29 0d |f (finpu|t == 0).|
|00006010| 20 20 20 20 70 66 61 74 | 61 6c 5f 77 69 74 68 5f | pfat|al_with_|
|00006020| 6e 61 6d 65 20 28 6e 61 | 6d 65 29 3b 0d 0d 20 20 |name (na|me);.. |
|00006030| 2f 2a 20 49 6e 69 74 69 | 61 6c 69 7a 65 20 64 61 |/* Initi|alize da|
|00006040| 74 61 20 69 6e 20 76 61 | 72 69 6f 75 73 20 70 61 |ta in va|rious pa|
|00006050| 73 73 65 73 2e 20 20 2a | 2f 0d 0d 20 20 69 6e 69 |sses. *|/.. ini|
|00006060| 74 5f 74 72 65 65 20 28 | 29 3b 0d 20 20 69 6e 69 |t_tree (|);. ini|
|00006070| 74 5f 6c 65 78 20 28 29 | 3b 0d 20 20 69 6e 69 74 |t_lex ()|;. init|
|00006080| 5f 72 74 6c 20 28 29 3b | 0d 20 20 69 6e 69 74 5f |_rtl ();|. init_|
|00006090| 65 6d 69 74 5f 6f 6e 63 | 65 20 28 29 3b 0d 20 20 |emit_onc|e ();. |
|000060a0| 69 6e 69 74 5f 64 65 63 | 6c 5f 70 72 6f 63 65 73 |init_dec|l_proces|
|000060b0| 73 69 6e 67 20 28 29 3b | 0d 20 20 69 6e 69 74 5f |sing ();|. init_|
|000060c0| 6f 70 74 61 62 73 20 28 | 29 3b 0d 0d 20 20 2f 2a |optabs (|);.. /*|
|000060d0| 20 49 66 20 72 74 6c 20 | 64 75 6d 70 20 64 65 73 | If rtl |dump des|
|000060e0| 69 72 65 64 2c 20 6f 70 | 65 6e 20 74 68 65 20 6f |ired, op|en the o|
|000060f0| 75 74 70 75 74 20 66 69 | 6c 65 2e 20 20 2a 2f 0d |utput fi|le. */.|
|00006100| 20 20 69 66 20 28 72 74 | 6c 5f 64 75 6d 70 29 0d | if (rt|l_dump).|
|00006110| 20 20 20 20 7b 0d 20 20 | 20 20 20 20 72 65 67 69 | {. | regi|
|00006120| 73 74 65 72 20 63 68 61 | 72 20 2a 64 75 6d 70 6e |ster cha|r *dumpn|
|00006130| 61 6d 65 20 3d 20 28 63 | 68 61 72 20 2a 29 20 78 |ame = (c|har *) x|
|00006140| 6d 61 6c 6c 6f 63 20 28 | 64 75 6d 70 5f 62 61 73 |malloc (|dump_bas|
|00006150| 65 5f 6e 61 6d 65 5f 6c | 65 6e 67 74 68 20 2b 20 |e_name_l|ength + |
|00006160| 36 29 3b 0d 20 20 20 20 | 20 20 73 74 72 63 70 79 |6);. | strcpy|
|00006170| 20 28 64 75 6d 70 6e 61 | 6d 65 2c 20 64 75 6d 70 | (dumpna|me, dump|
|00006180| 5f 62 61 73 65 5f 6e 61 | 6d 65 29 3b 0d 20 20 20 |_base_na|me);. |
|00006190| 20 20 20 73 74 72 63 61 | 74 20 28 64 75 6d 70 6e | strca|t (dumpn|
|000061a0| 61 6d 65 2c 20 22 2e 72 | 74 6c 22 29 3b 0d 20 20 |ame, ".r|tl");. |
|000061b0| 20 20 20 20 72 74 6c 5f | 64 75 6d 70 5f 66 69 6c | rtl_|dump_fil|
|000061c0| 65 20 3d 20 66 6f 70 65 | 6e 20 28 64 75 6d 70 6e |e = fope|n (dumpn|
|000061d0| 61 6d 65 2c 20 22 77 22 | 29 3b 0d 20 20 20 20 20 |ame, "w"|);. |
|000061e0| 20 69 66 20 28 72 74 6c | 5f 64 75 6d 70 5f 66 69 | if (rtl|_dump_fi|
|000061f0| 6c 65 20 3d 3d 20 30 29 | 0d 09 70 66 61 74 61 6c |le == 0)|..pfatal|
|00006200| 5f 77 69 74 68 5f 6e 61 | 6d 65 20 28 64 75 6d 70 |_with_na|me (dump|
|00006210| 6e 61 6d 65 29 3b 0d 20 | 20 20 20 7d 0d 0d 20 20 |name);. | }.. |
|00006220| 2f 2a 20 49 66 20 6a 75 | 6d 70 5f 6f 70 74 20 64 |/* If ju|mp_opt d|
|00006230| 75 6d 70 20 64 65 73 69 | 72 65 64 2c 20 6f 70 65 |ump desi|red, ope|
|00006240| 6e 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 69 6c |n the ou|tput fil|
|00006250| 65 2e 20 20 2a 2f 0d 20 | 20 69 66 20 28 6a 75 6d |e. */. | if (jum|
|00006260| 70 5f 6f 70 74 5f 64 75 | 6d 70 29 0d 20 20 20 20 |p_opt_du|mp). |
|00006270| 7b 0d 20 20 20 20 20 20 | 72 65 67 69 73 74 65 72 |{. |register|
|00006280| 20 63 68 61 72 20 2a 64 | 75 6d 70 6e 61 6d 65 20 | char *d|umpname |
|00006290| 3d 20 28 63 68 61 72 20 | 2a 29 20 78 6d 61 6c 6c |= (char |*) xmall|
|000062a0| 6f 63 20 28 64 75 6d 70 | 5f 62 61 73 65 5f 6e 61 |oc (dump|_base_na|
|000062b0| 6d 65 5f 6c 65 6e 67 74 | 68 20 2b 20 36 29 3b 0d |me_lengt|h + 6);.|
|000062c0| 20 20 20 20 20 20 73 74 | 72 63 70 79 20 28 64 75 | st|rcpy (du|
|000062d0| 6d 70 6e 61 6d 65 2c 20 | 64 75 6d 70 5f 62 61 73 |mpname, |dump_bas|
|000062e0| 65 5f 6e 61 6d 65 29 3b | 0d 20 20 20 20 20 20 73 |e_name);|. s|
|000062f0| 74 72 63 61 74 20 28 64 | 75 6d 70 6e 61 6d 65 2c |trcat (d|umpname,|
|00006300| 20 22 2e 6a 75 6d 70 22 | 29 3b 0d 20 20 20 20 20 | ".jump"|);. |
|00006310| 20 6a 75 6d 70 5f 6f 70 | 74 5f 64 75 6d 70 5f 66 | jump_op|t_dump_f|
|00006320| 69 6c 65 20 3d 20 66 6f | 70 65 6e 20 28 64 75 6d |ile = fo|pen (dum|
|00006330| 70 6e 61 6d 65 2c 20 22 | 77 22 29 3b 0d 20 20 20 |pname, "|w");. |
|00006340| 20 20 20 69 66 20 28 6a | 75 6d 70 5f 6f 70 74 5f | if (j|ump_opt_|
|00006350| 64 75 6d 70 5f 66 69 6c | 65 20 3d 3d 20 30 29 0d |dump_fil|e == 0).|
|00006360| 09 70 66 61 74 61 6c 5f | 77 69 74 68 5f 6e 61 6d |.pfatal_|with_nam|
|00006370| 65 20 28 64 75 6d 70 6e | 61 6d 65 29 3b 0d 20 20 |e (dumpn|ame);. |
|00006380| 20 20 7d 0d 0d 20 20 2f | 2a 20 49 66 20 63 73 65 | }.. /|* If cse|
|00006390| 20 64 75 6d 70 20 64 65 | 73 69 72 65 64 2c 20 6f | dump de|sired, o|
|000063a0| 70 65 6e 20 74 68 65 20 | 6f 75 74 70 75 74 20 66 |pen the |output f|
|000063b0| 69 6c 65 2e 20 20 2a 2f | 0d 20 20 69 66 20 28 63 |ile. */|. if (c|
|000063c0| 73 65 5f 64 75 6d 70 29 | 0d 20 20 20 20 7b 0d 20 |se_dump)|. {. |
|000063d0| 20 20 20 20 20 72 65 67 | 69 73 74 65 72 20 63 68 | reg|ister ch|
|000063e0| 61 72 20 2a 64 75 6d 70 | 6e 61 6d 65 20 3d 20 28 |ar *dump|name = (|
|000063f0| 63 68 61 72 20 2a 29 20 | 78 6d 61 6c 6c 6f 63 20 |char *) |xmalloc |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.